Re: find and replace

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: James Mcphee
Date:  
To: Main PLUG discussion list
Subject: Re: find and replace
rename .JPG .jpg *.JPG

On Wed, Feb 8, 2012 at 3:58 PM, Michael Havens <> 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 -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>




--
James McPhee

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss