- To: Slug <slug@xxxxxxxxxxx>
- Subject: [SLUG] Re: covert lowercase to uppercase.
- From: Angus Lees <gusl@xxxxxxxxxxxxxxx>
- Date: Mon Nov 20 21:07:23 2000
- User-agent: Mutt/1.2.5i
\begin{Rodos}
> ls *.JPG | perl -ane 'chop; system("mv $_ " . lc($_));'
perl has its own file ops you know ;)
ls *.JPG | perl -lne 'rename $_, lc;'
and the ls isn't really doing anything except passing through the shell's
expanded glob, so:
perl -e 'rename $_, lc for @ARGV' *.JPG
same with sh:
for f in *.JPG; do mv $f `echo $f | tr A-Z a-z`; done
--
- Gus