How would one use mv to rename files? I need something easy to remember! I have no idea how to 'speak this command. rename 's/\.JPG$/.jpg/' *.JPG
Still works. But that was more graceful. :-)
On Feb 20, 2012 7:26 PM, "Michael Havens" <bmike1@gmail.com> wrote: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@bensbrowning.com> wrote:
On Mon, Feb 20, 2012 at 6:05 PM, Ariel Gold <arielqgold@gmail.com> wrote:On machines with perls rename installed(usually Debian and Ubuntu), "
> Here's one way to do it:
>
> for f in *JPG ; do mv $f `basename $f JPG`jpg; done
rename 's/\.JPG$/.jpg/' *.JPG " will do it too.
~Ben
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@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~(-:
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss