tag_mp3 (602B)
1 #!/bin/bash 2 #mp3_names_script 3 4 var=1 5 6 ls -v | grep .mp3 | cat -n | while read n f; do mv -n "$f" "$n.mp3"; done 7 8 [ -z "$album" ] && echo "Nombre del Album?" && read -r album 9 [ -z "$year" ] && echo "Año del Album?" && read -r year 10 [ -z "$artist" ] && echo "Artista del Album?" && read -r artist 11 12 while read p; do 13 #eyeD3 -t "$p" -n $var $var.mp3 14 track=$(cut -d'|' -f1 <<<"$p" ) 15 composser=$(cut -d'|' -f2 <<<"$p" ) 16 echo "$track" 17 echo "$composser" 18 eyeD3 -t "$p" -n $var -b "$artist" -A "$album" -a "$composser" -Y "$year" -t "$track" $var.mp3 19 ((var++)) 20 echo $var 21 done <$1