Content added Content deleted
imported>Finn mNo edit summary |
imported>mutante mNo edit summary |
||
Line 1:
<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 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
<br>
<br>
Line 6:
do mv -i $i $(echo $i | tr [A-Z] [a-z])<br>
done<br>
[[Category:Computer]]
[[Category:Linux]]
[[Category:Programming]]
|
Latest revision as of 22:53, 23 February 2005
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])
done