dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

tag (876B)


      1 #!/usr/bin/env bash
      2 clear
      3 cd ~
      4 echo Welcome to MP3 Tagger!
      5 if [ $# -eq 0 ]; then
      6 	echo 'Sorry, you have not specified a file. Please specify a file while invoking the command, such as "tag filename.mp3"'
      7 	echo "Do you want to list all of the files available? (y/n) "
      8 	read ANSWER
      9 	if [ $ANSWER == "y" ]; then
     10 		ls ~/Music/iTunes/iTunes\ Music/
     11 	else
     12 		exit 0
     13 	fi
     14 else
     15 	echo The file that will be tagged is $1
     16 	java -jar ~/.bin/mp3tagger.jar Music/iTunes/iTunes\ Music/$1
     17 	cd Music/iTunes/iTunes\ Music/
     18 	echo The file $1 was tagged successfully.
     19 	cp *.mp3.tag ~/Desktop/
     20 	rm *.mp3.tag
     21 	echo "The file with the information about the tag was moved to your Desktop. Would you like to display the information it contains? (y/n)"
     22 	read INFODISPLAY
     23 	if [ $INFODISPLAY == "y" ]; then
     24 		clear
     25 		cd ~/Desktop
     26 		cat $1.tag
     27 	else
     28 		echo Okay, the .tag file was saved. Now exiting.
     29 	fi
     30 fi