moving upper case names to lower case
Wm E Davidsen Jr
davidsen at crdos1.crd.ge.COM
Wed Aug 23 12:09:54 AEST 1989
In ksh you can do it using the uppercase attribute (I realize we don't
all use ksh yet).
$ typeset -u ucase
$ for file in *[a-z]*
> do ucase=${file}
> if [ ! -f $ucase ]
> then mv ${file} ${ucase}
> else echo "Can't move ${file}"
> fi
>done
ksh takes most of the pain out of it, although you may find typing in the
C program easier. If you have ksh you can put this in as a macro.
More information about the Comp.unix.questions
mailing list