On Mon, Dec 09, 2002 at 03:03:10PM -0500, drew cohan wrote:
> How do I rename all files in a directory matching the pattern *.JPG to
> *.jpg in a bash shell script?  Thanks to you guys I can check for the
> existence of jpgs in a directory, but can't seem get 'mv' to rename
them
> for me (always complains that the last argument must be a directory).

Thanks, once again, you guys are great.  One quick question about this
one:

  $ rename 's/\.JPG$/.jpg/' *.JPG

Shouldn't I literalize the second period like

  $ rename 's/\.JPG$/\.jpg/' *.JPG

or doesn't that make a difference?

-- Drew



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to