Skip to content

Instantly share code, notes, and snippets.

@nileshgr
Last active December 14, 2015 15:09
Show Gist options
  • Save nileshgr/5106229 to your computer and use it in GitHub Desktop.
Save nileshgr/5106229 to your computer and use it in GitHub Desktop.
Shell snippet (zsh/bash) to convert / in id3tags (Flyte songs) to comma followed by space
NOTE -- You need eyeD3 python library and id3lib (C++ library) for the commands eyeD3 and id3info respectively.
find -name '*.mp3' | while IFS= read -r file; do
artists_org=$(id3info "$file" | grep TPE1 | awk -F ': ' ' { print $2 }')
artists_new=$(echo $artists_org | sed 's@/@, @g' | sed 's/ *$//g')
eyeD3 -a "$artists_new" "$file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment