Last active
December 14, 2015 15:09
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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