How to rename multiple files?
How do I rename multiple files? For example all files ending with *.txt.link to *.txt?
Code:
book1.txt.link |
for file in *.txt.link; do
mv $file ${file%.link} done If the filenames might contain whitespace, then enclose them in double quotes. |
see 'man rename'. Quick example:
Code:
[clavel@home test]$ ls |
Thank you both! It was very helpful to me.
Regards, |
All times are GMT -5. The time now is 02:48 PM. |