diff --git a/Utils/make_title.sh b/Utils/make_title.sh new file mode 100755 index 0000000..6aff8fe --- /dev/null +++ b/Utils/make_title.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +for i in *.mp3; do + + newFile=`echo $i | sed 's/ - /@/g'` + author=`echo $newFile | cut -d@ -f1 | sed 's/ *$//'` + name=`echo $newFile | cut -d@ -f2 | sed -e 's/ *$//' -e 's/^ *//' -e 's/.mp3//'` + + echo "I have >>$author<< and >>$name<<" + + id3 -a "$author" -t "$name" "$i" + +done +