Renaming Files on Hoary

Stephen R Laniel steve at laniels.org
Wed Jun 15 01:27:30 UTC 2005


On Tue, Jun 14, 2005 at 10:21:25PM -0300, Joel Goguen wrote:
> Try escaping the * so it gets passed to the script as the * character.
> So instead of 
> [jgoguen@/home/jgoguen]$ rename *.JPG *.jpg
> you would have 
> [jgoguen@/home/jgoguen]$ rename \*.JPG \*.jpg

The latter would be identical to

rename '*.JPG' '*.jpg'

And that won't work, as I mentioned earlier, without
writing your own globbing engine. 

-- 
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/7b2954b6/attachment.sig>


More information about the ubuntu-users mailing list