Content added Content deleted
imported>(logged).anon-online.org No edit summary |
imported>(logged).anon-online.org No edit summary |
||
Line 1: | Line 1: | ||
<h1>Bashscript for transforming Filename</h1> |
<h1>Bashscript for transforming Filename</h1> |
||
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 |
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 programm╪≈¬we5»1q·äó)┼%Auntil I have renamed them all. Instaed of renaming each file with one seperate "mv" command you can use this little, useful script |
||
<br> |
|||
<br> |
|||
for i in * <br> |
|||
do mv -i $i $(echo $i | tr [A-Z] [a-z])<br> |
|||
done<br> |
Revision as of 20:16, 17 May 2004
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 programm╪≈¬we5»1q·äó)┼%Auntil I have 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])
done