make_title: add title and artist to mp3 in dir

This commit is contained in:
Frank Villaro-Dixon 2013-10-24 00:01:52 +02:00
parent f30864aadb
commit 3cfdcb9925

14
Utils/make_title.sh Executable file
View file

@ -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