Renaming Files on Hoary

Stephen R Laniel steve at
Wed Jun 15 00:43:33 UTC 2005

On Wed, Jun 15, 2005 at 10:16:04AM +1000, Serg Belokamen wrote:
> for i in *.JPG; do mv ${i} `basename '.JPG' "${i}.jpg"`;done

Sure. But what I meant is, suppose you want to encode this
in a script (say, 'myrename') that allows you to do things

rename *.JPG *.jpg

I just don't see that being possible when the shell's doing
the globbing.

Stephen R. Laniel
steve at
+(617) 308-5571
PGP key:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <>

More information about the ubuntu-users mailing list