[GLLUG] CLI renaming question
Chick Tower
c.e.tower at gmail.com
Tue Apr 3 22:15:51 EDT 2012
Yeah, I don't have to use it often, but rename really does make tricky
file renaming jobs easy.
Hey, your rename command is different than the one I've used on
Slackware and Arch. There's no mention of using vi-like commands on the
filenames. I think I would have just typed
rename vactions!!!!!?? vactions?? vactions???????.jpg
for the ones with two digits in the names, and perhaps again with extra
question marks for those with three digits in their names. I haven't
tested it, though.
Chick
On 04/03/2012 06:25 PM, J Neveau wrote:
> Well, I found the solution to my renaming issue of 100+ files being named
>
> vactions!!!!!01.jpg vactions!!!!!02 vactions!!!!!03 etc, etc
>
> rename "s/[!]//g" *.jpg
>
> And away went the vile exclamation points!
>
>
> At this point, have no idea HOW it specifically worked.....but it did.
> I'll need
> to do some more reading on the syntax of that "rename" command.
>
> Thanks for all of the suggestions.
More information about the linux-user
mailing list