|
Please, need a bash script move...
hello.
can anyone help me i need a bash script which move conents from one directory(directory and files)
/home/temp/*
and put it in to another directory with same stucture(directory and files)
/home/save/
But if file or directory in /home/save/ exist like
mv /home/temp/bla/ /home/save/bla/ only update contesnts inside, or not exist create it.
If files in directory exist : mv /home/temp/bla/file.txt /home/save/bla/file.txt cheate backup or reneme new file-(not replace)
like /home/save/bla/file(1).txt
thanks fore help
p.s Sorry for bad EN.
|