Looking for a script please (I think)
Szekeres Istvan
szekeres at iii.hu
Sat Jun 2 22:04:38 UTC 2007
Hello,
> Can anybody suggest a terminal script (or any other way) to do the
> following please?
>
> I have about 500 mp3 music files in a single directory which are
> currently named as eg:
>
> "Supremes - Baby Love.mp3" etc, etc
>
> How can I reverse the naming convention to say;
>
> "Baby Love - Supremes.mp3" and for every other file as well
sudo apt-get install mmv
mmv -n '* - *.mp3' '#2 - #1.mp3'
This does not do it just writes what it would do. Remove the "-n" from
the command to actually perform the renames.
Beware: if the file name contains more than one "-", the command may not
do the right thing.
Regards,
Pistahh
More information about the ubuntu-users
mailing list