[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bulk filename changes



Jason V Smith wrote:

>I'm stumped not sure where to look.  Here's what I want to do.  I have a
>bunch of pictures that are named similar to this pb040016.jpg.in.out.
>What I want is to rename the file to this pb040016.jpg.  But I have a
>bunch of files like this.  
>  
>
I think this will do it:

    rename '.in.out' '' *.out

(All quotes above are single quotes.  I'm not sure if that matters.)

Of course, make copies of the files in a temporary directory and test it 
there before attempting it "for real." 

Try "man rename" for more info.

Hope this helps,
Charlie

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.