Converting file names to uppercase
Hi
Please help me in converting lower case filenames to uppercase. The following is what I've attempted and it seems not to work: cd /home/temp # going into the temp directory where the files are located for file in *.file do tr [:lower:] [:upper:] done Please help..!!! |
Quote:
for file in *.file do mv $file `echo $file | tr [:lower:] [:upper:]` done |
Code:
perl -e' |
Quote:
One trick in writing scripts is to first test each individual command to be sure you know what it does. |
Thanks zoran119
That mv command worked perfectly for me. Thanks to you all! |
Thanks to this i learnt something new.
|
All times are GMT -5. The time now is 02:49 AM. |