Skip to content

Instantly share code, notes, and snippets.

@ASKozienko
Created March 18, 2014 22:05
Show Gist options
  • Save ASKozienko/9630766 to your computer and use it in GitHub Desktop.
Save ASKozienko/9630766 to your computer and use it in GitHub Desktop.
id3iconv() {
FILE="$@"
if [ -z $FILE ]; then
FILE="."
fi
if [ -d $FILE ]; then
find $FILE -iname "*.mp3" -exec java -jar ~/Applications/id3iconv-0.2.1.jar -d -e cp1251 {} \;
return 0
fi
if [ -f $FILE ]; then
java -jar ~/Applications/id3iconv-0.2.1.jar -d -e cp1251 $FILE
return 0
fi
echo "\"$FILE\" file was not found"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment