1b2af2809f
git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@83 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
16 lines
349 B
Bash
Executable File
16 lines
349 B
Bash
Executable File
#!/bin/sh
|
|
# lowerit
|
|
# convert all file names in the current directory to lower case
|
|
# only operates on plain files--does not change the name of directories
|
|
# will ask for verification before overwriting an existing file
|
|
for x in `ls`
|
|
do
|
|
if [ ! -f $x ]; then
|
|
continue
|
|
fi
|
|
lc=`echo $x | tr '[A-Z]' '[a-z]'`
|
|
if [ $lc != $x ]; then
|
|
mv -i $x $lc
|
|
fi
|
|
done
|