Moving files
Kevin D. Clark
kclark at CetaceanNetworks.com
Mon Jan 6 11:16:52 EST 2003
"Kenneth E. Lussier" <ken.lussier at zuken.com> writes:
> I have been trying to organize my MP3's, but I ran into a little
> trouble. Apparently, one of the rippers that I used wasn't configured
> correctly, and evey albumn and song name has spaces. I can go through
> and rename each song one at a time, but that will take forever to do.
How about this:
perl -MFile::Find -e 'find(sub{$old = $_; y/ /_/; rename($old, $_);}, "kens-mp3-dir");'
This recursively changes both files and directory names to what you specified.
Regards,
--kevin
--
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc
More information about the gnhlug-discuss
mailing list