find and replace
James Mcphee
jmcphe at gmail.com
Wed Feb 8 16:19:34 MST 2012
rename .JPG .jpg *.JPG
On Wed, Feb 8, 2012 at 3:58 PM, Michael Havens <bmike1 at 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 at Michaels-Laptop ~/Pictures/Flowers $ find *.JPG|mv *.jpg
> mv: missing destination file operand after `*.jpg'
> Try `mv --help' for more information.
> <b>
> bmike1 at Michaels-Laptop ~/Pictures/Flowers $ mv *.JPG *.jpg
> mv: target `*.jpg' is not a directory
> bmike1 at Michaels-Laptop ~/Pictures/Flowers $ man mv
> bmike1 at Michaels-Laptop ~/Pictures/Flowers $ mv -T *.JPG *.jpg
> mv: extra operand `100_0125.JPG'
> Try `mv --help' for more information.
> bmike1 at Michaels-Laptop ~/Pictures/Flowers $ mv ./*.JPG *.jpg
> mv: target `*.jpg' is not a directory
> bmike1 at Michaels-Laptop ~/Pictures/Flowers $ mv -T ./*.JPG *.jpg
> mv: extra operand `./100_0125.JPG'
> Try `mv --help' for more information.
> bmike1 at Michaels-Laptop ~/Pictures/Flowers $
>
> --
> :-)~MIKE~(-:
>
> ---------------------------------------------------
> 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
>
--
James McPhee
jmcphe at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20120208/1fb26fb6/attachment.html>
More information about the PLUG-discuss
mailing list