So sprach �J. Grant� am 2002-01-28 um 15:44:32 +0900 :
> I just checked, and rename does not seem to support renaming files such 
> as pic1, pic2 -> pic1.jpg pic2.jpg etc? or does it?
> 
> it seems to require something to swap, the from option but if I want to 
> add at the end I can not.
> 
> I think there are better ways to do this using a bash script and mv, i 
> am sure others have done this already.

Well, I don't use rename, so I'd suggest to have a look at my example
with the regexp again.  But in the case of pic1, pic2 -> pic1.jpg,
pic2.jpg it's even simpler:

for f in *; do
        mv $f $f.jpg
done

You can type this exactly like above on the shell prompt.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:       http://www.iso-top.de      |     Jabber: [EMAIL PROTECTED]
   iso-top.de - Die g�nstige Art an Linux Distributionen zu kommen
                       Uptime: 14 days 9 hours 34 minutes

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to