[Nottingham] Batch file renaming
Martin
martin at ml1.co.uk
Sun Jul 20 13:19:26 BST 2008
Michael Quaintance wrote:
[---]
> want all have names like "01 - Beat It.mp3.128kbps". The files are
> arranged in folders of the artist and album.
>
> Because these files have been transferred from a Mac to a Windows
> machine, there are some "interesting" characters in the file and folder
> names. By interesting, I mean accented characters, spaces, exclamation
> marks, attempts at protecting accented characters, etc.
>
> Could someone suggest a way to rename all these files so as to strip the
> trailing ".128kbps" and leave the rest of the filename and folder names
> intact?
OK, first:
MAKE A FULL BACKUP OF EVERYTHING FIRST!
For take one, try:
cd to the top directory, and:
find . -name '*.128k' -print | while read n ; do mv -v "${n}"
"${n%.128k}" ; done
There's various GUI batch renamers. I don't know if they work
hierarchically.
BTW: When are you flying?
Any partying??!
Cheers,
Martin
--
----------------
Martin Lomas
martin at ml1.co.uk
----------------
More information about the Nottingham
mailing list