Renaming Files on Hoary

Stephen R Laniel steve at laniels.org
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
like

rename *.JPG *.jpg

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

-- 
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050614/b8550e83/attachment.sig>


More information about the ubuntu-users mailing list