Move directory of files
I have series of files
one.txt two.txt three.txt four.txt and so on into the directory TXT, I want to move these files to TXT.BACKUP directory like one.txt.backup two.txt.backup three.txt.backup four.txt.backup.... can anyone guide me...... |
If you have a backup directory then you probably don't need to rename every file in the backup directory. I would do this.
Code:
cp -R TXT TXT.BACKUP |
It will probably work best if you cd into your TXT directory.
Code:
cd TXT After the "in" in the for loop you could have a space separated list of files if there are a handful of particular files that you want to backup: for file in one.txt two.txt three.txt |
Thank u pals...
It's work very well.. |
All times are GMT -5. The time now is 02:46 AM. |