I need to move a file from one directory to another directory along with version number.
Example:
mv /directory1/report /directory2/report.c01
Next time i need to move the same report to directory2 with the version number attached to the file.
mv /directory1/report /directory2/report.c02
thanks in advance
first move the file and second time use copy commnad.
---------- Post updated at 04:11 PM ---------- Previous update was at 04:08 PM ----------
Do this:
mv /directory1/report /directory2/report.c01
cp /directory2/report.c01 /directory2/report.c02
or first copy then move.
Hi thanks for the reply
But the above does not solve my problem. I get the report more than 10 times in the directory1 and have to move to the directory2 as below
report.c01
report.c02
report.c03
.
.
.
.
.
report.c10
Please make your requirement more clear Or paste the log.