
I have a collection of mp3's and ogg's, a lot of which take the form 02_name_of_artist_name_of track.ogg. What I want to end up with is a file called name_of_track.ogg.
I know that I can use
- Code: Select all
for i in *.ogg; do mv "$i" "${i/_name_of_artist_}"; done
Anybody?