euglug.org

[Eug-lug] Subject: Copying, moving, whatever… using wildcards in destination : wc2fn.py

작성자

카테고리:



Bob MillerTue Nov 2 23:54:38 PST 2004

Allen Brown wrote:

> On Tue, 2 Nov 2004, Bob Miller wrote:
> 
> > horst wrote:
> > 
> > > Let's say I want to make my digital images all lowercase:
> > >     	mv *.JPJ *.jpg
> > 
> > 	/usr/bin/rename .JPG .jpg *.JPG
> 
> I didn't know of rename.  That's really nice.  But according to the
> man page your example isn't right.  That should be
> 	rename 's/\.JPG$/.jpg/' *.JPG
> 
> And similarly for the other examples you provided.

There are two different programs called rename.  I was talking about
the GNU rename utility.  You're talking about the Perl rename command
(written by Tom Christiansen when his office was just down the hall
from mine, FWIW).

I tested the BARFOO -> bare_foot example before I posted it, using
GNU rename.

-- 
Bob Miller                              K<bob>
kbobsoft software consulting
http://kbobsoft.com                     kbob at jogger-egg.com