On Fri, Jul 24, 1998 at 11:20:19AM -0700, Steve Lamb wrote: > On Fri, 24 Jul 1998 11:09:41 -0700 (PDT), Eric House wrote: > > >Why not, in bash: > > >for f in $(ls); do > >oldName=$f > >newName=$(echo $oldName | tr [A-Z] [a-z]) > >mv -i $oldName $newName > >done > > [EMAIL PROTECTED]:/home/morpheus/t}ls -la > total 4 > drwxr-xr-x 2 morpheus users 1024 Jul 24 11:22 . > drwxr-xr-x 33 morpheus users 3072 Jul 24 08:30 .. > -rw-rw-r-- 1 morpheus users 0 Jul 24 11:22 Blah.Blah > -rw-rw-r-- 1 morpheus users 0 Jul 24 11:22 blah.blah > > That's why. ;)
So what? Didn't you saw the "-i" option he supplied to the mv command? FYI: -i, --interactive Prompt whether to overwrite each destination file that already exists. If the response does not begin with `y' or `Y', the file is skipped. That's why Eric's solution works :P Marcus -- "Rhubarb is no Egyptian god." Debian GNU/Linux finger brinkmd@ Marcus Brinkmann http://www.debian.org master.debian.org [EMAIL PROTECTED] for public PGP Key http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ PGP Key ID 36E7CD09 -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null