From s23
Jump to navigation Jump to search

Bashscript for transforming Filename

I have encountered one problem when I tried to use software I have copied from a windows machine in a windows emulator. The filenames where all in capital letters most windows programms didn't work until I had renamed them all. Instaed of renaming each file with one seperate "mv" command you can use this little, useful script

for i in *
do mv -i $i $(echo $i | tr [A-Z] [a-z])