Script to convert Linux Filenames to Lowercase
Posted by raxsoAug 12
This is a small script from Phil Hughes to convert filenames in Linux to lowercase letters.
Like this blog? Why not buy me a cup of coffee?
1 #!/bin/sh
2 # lowerit
3 # convert all file names in the current directory to lower case
4 # only operates on plain files--does not change the name of directories
5 # will ask for verification before overwriting an existing file
6 for x in `ls`
7 do
8 if [ ! -f $x ]; then
9 continue
10 fi
11 lc=`echo $x | tr ‘[A-Z]‘ ‘[a-z]‘`
12 if [ $lc != $x ]; then
13 mv -i $x $lc
14 fi
15 done





![[hackers black book]](http://raxso.net/images/hbb-ani-misuse.gif)





Hmmm.. good stuff tough i still use MS applications and if i use linux, i know where to go. ^^
Rogues last blog post..Travelling Is Simply Amazing!
[Reply]
Nice script AMIGO!
- LiNTEK
LiNTEKs last blog post..Super Talent Pico D swivel USB drive
[Reply]
thanks for advertising on my site again. just a reminder, everyone who advertises on my site through entercard, i bookmark them and drop on them everyday, thanks again
juzten
Daily Free Software
juztens last blog post..Blog Icons contest
[Reply]