find and replace

Ben Browning benb at bensbrowning.com
Mon Feb 20 18:10:13 MST 2012


On Mon, Feb 20, 2012 at 6:05 PM, Ariel Gold <arielqgold at gmail.com> wrote:
> Here's one way to do it:
>
> for f in *JPG ; do mv $f `basename $f JPG`jpg; done

On machines with perls rename installed(usually Debian and Ubuntu), "
rename 's/\.JPG$/.jpg/' *.JPG " will do it too.

~Ben


More information about the PLUG-discuss mailing list