Created
March 18, 2014 22:05
-
-
Save ASKozienko/9630766 to your computer and use it in GitHub Desktop.
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
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