[Leaplist] howto change the name of every file in a directory

Jim Hartley xjimh at cfl.rr.com
Thu Oct 9 08:49:32 EDT 2008


Another alternative that I usually use - pipe "ls" into awk, and use awk 
to generate a bunch of "mv $0 Dune3_$0" commands which are then piped 
into /bin/bash. Don't know that it's any better or worse, but knowing 
several ways to do something is ALWAYS good.

Jim Hartley

Dan Cherry wrote:
> On Wednesday 08 October 2008 7:54:55 pm Mr. Brunkow wrote:
>> Mr. Brunkow wrote:
>>> to add something to the front of the name?
>>>
>>> I have the audio MP3 collection of the Dune line of books.  I want to
>>> burn a MP3 CD, but dune, dune messiah are in order by alphabetics, but
>>> children of dune is not.  i want to add [dune_3]_ to the front of all of
>>> the children of dune mp3 files.
>> nm, found this great script.  does exactly what i want to do:
>>
>> http://herselfswebtools.com/files/chgfilename.txt
>>
>> enjoy if you need it.
>>
>> --
>> Raymond L. Brunkow
>> 5th Degree Black Belt
>> Chief Instructor and Owner
>> Sun State Martial Arts LLC.
>> (407) 786-2525
>> ssma at ssma.us
>> http://www.ssma.us
> 
> If you're into KDE (and even if you're not, you could install just the parts 
> of interest), you might like krename used with krusader or konqueror.  It's 
> slick because you can make changes based on functions, position, and/or  
> regex...
> very powerful, and it can also be used from cli.
> 
> hth
> 

-- 
Teen Angel - a ghost story - http://teenangel.netfirms.com

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Leaplist mailing list