[lug] Perl question
Ken Weinert
kweinert at earthlink.net
Fri Mar 31 15:57:31 MST 2000
* JEFF PFOHL (pfohl at sandia.gov) [000331 15:12]:
> I'm not a Perl guru. Why don't you just do this in /bin/sh?
>
> #!/bin/sh
> # this script converts file names from upper to lower case
> for FILE in *
> do
> mv $FILE `echo $FILE|tr [A-Z] [a-z]`
> done
One thing: there may be files that differ only by case - the
perl checks for this, your shell does not :-)
--
Ken Weinert kweinert at earthlink.net 303-858-6956 (V) 978-336-5652 (F)
PGP: DF 2B 6C 72 33 BE 06 D1 9D C4 ED 32 36 97 C0 6E
More information about the LUG
mailing list