4 # @(#) lowercase.ksh 1.0 92/10/08
5 # 92/10/08 john h. dubois iii (john@armory.com)
7 # conversion to bash v2 syntax done by Chet Ramey
12 [ -f "$file" ] ||
continue
15 */*) dirname=${file%/*} ;;
18 nf
=$
(echo $filename |
tr A-Z a-z
)
19 newname
="${dirname}/${nf}"
20 if [ "$nf" != "$filename" ]; then
22 echo "lowercase: $file -> $newname"
24 echo "lowercase: $file not changed."