find and replace

Michael Havens bmike1 at gmail.com
Mon Feb 20 19:25:58 MST 2012


worked like a charm. I seem to remember that I use to rename files with
'mv'. am I mistaken? or did something change?

On Mon, Feb 20, 2012 at 6:10 PM, Ben Browning <benb at bensbrowning.com> wrote:

> 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
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>



-- 
:-)~MIKE~(-:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20120220/b24ed9b4/attachment.html>


More information about the PLUG-discuss mailing list