euglug.org

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

작성자

카테고리:



Allen BrownTue Nov 2 20:16:58 PST 2004

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.
[cut]
> -- 
> Bob Miller                              K<bob>

--
Allen Brown
  work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
        allen_brown at agilent.com             abrown at peak.org
  Always forgive your enemies -- Nothing annoys them so much. ---Oscar 
Wilde