mass-renamer tool

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

 



I'm sorry I don't have access to my other machine which has a perl
script that does some global renaming. But for starters, the for
construct is your friend.  In either bash or perl, do a for loop and
have it pass over each file in the given directory and do regexp and
whatever else substitutions in for the new name and then do the new
name  My version takes out underscores and puts spaces back in for use
with my windows environments.  Now that I'm doing more and more in
linux however, I almost regret that standard and may go back the other
way and leave them in.  But I'm trying to keep all my archived CD's
containing mp3's consistantly named.

Let me know if you need more.  When I get home tonight, I'll try and
pass along what I have though it could use some more juce to make it
better and more flexible.

On Mon, Feb 02, 2004 at 09:05:07AM -0600, Raul A. Gallegos wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi gang.  Anyone got any scripts or know of where I can find some tools 
> to do some mass-renaming?  For example, I have lots of audio files which 
> are named:
> 
> 12-song-title.ogg
> 
> And I'd like to mass rename them to:
> 
> Artist_-_songtitle.ogg
> 
> Or something to that affect.  I've triewd writing my own script but keep 
> running into problems with the spaces in the files because wsith the mv 
> command they need to be escaped.  It's not as easy as poutting '' around 
> them.
> 
> Any ideas or suggestions?
> 
> - -- 
> Raul a. Gallegos - http://www.asmodean.net
> Do you like 80's music?  Do you want to spend some time on Saturdays listening?
> Visit http://www.chosen80s.com for all the details.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> 
> iD8DBQFAHmcjas0vKmIuNMcRArloAJ9KJIjsYrQkBYiat+s6/yUyGz3OeACgkdeu
> BptIQjsXQ4nWaFwG9bcOKWk=
> =c1Sg
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
> 

-- 
HolmesGrown Solutions
The best solutions for the best price!
http://ld.net/?holmesgrown




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux