[adding the find logic]

find /blah/*.jpg -exec rename .jpg .png {} \;

On Wed, Feb 8, 2012 at 6:19 PM, James Mcphee <jmcphe@gmail.com> wrote:
rename .JPG .jpg *.JPG

On Wed, Feb 8, 2012 at 3:58 PM, Michael Havens <bmike1@gmail.com> wrote:
some cameras take photos and append it with .JPG  My system doesn't seem to like that. How do I find and replace text. I thought it would be a simple pipe argument (as shown in <a>) but I was wrong. How do you do it?
I then figured I only have a few in one directory to do so I wouldd do a simple mv command. That didn't work either <b> So I looked at its man page and discovered th -T option; but that didn't help any. I googled and found some complex commands and I a s hoping there was a simple way to do it (like my pipe example0.
Is there a simple way to find from / and change the name of multiple files?

<a>
bmike1@Michaels-Laptop ~/Pictures/Flowers $ find *.JPG|mv *.jpg
mv: missing destination file operand after `*.jpg'
Try `mv --help' for more information.
<b>
bmike1@Michaels-Laptop ~/Pictures/Flowers $ mv *.JPG *.jpg
mv: target `*.jpg' is not a directory
bmike1@Michaels-Laptop ~/Pictures/Flowers $ man mv
bmike1@Michaels-Laptop ~/Pictures/Flowers $ mv -T *.JPG *.jpg
mv: extra operand `100_0125.JPG'
Try `mv --help' for more information.
bmike1@Michaels-Laptop ~/Pictures/Flowers $ mv ./*.JPG *.jpg
mv: target `*.jpg' is not a directory
bmike1@Michaels-Laptop ~/Pictures/Flowers $ mv -T ./*.JPG *.jpg
mv: extra operand `./100_0125.JPG'
Try `mv --help' for more information.
bmike1@Michaels-Laptop ~/Pictures/Flowers $

--
:-)~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



--
James McPhee
jmcphe@gmail.com

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