mass renaming songs.pk files

I don’t like the prefix songs.pk mp3 files have. But you download multiple files and using `mv` for each file is PITA. So I always prefer the following method. But I keep forgetting the syntax and have to refer
tldp abs. So today putting it as a blog post.

for i in *.mp3; do mv -i "${i}" "${i##\[*\-\ }" ; done

enjoy!!!

Advertisements

One thought on “mass renaming songs.pk files

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s