[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to rename multiple files



drew cohan wrote:

> 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?

The replacement text is not a regular expression, so it isn't necessary.
It should be harmless, though, I think.

Craig



Reply to: