dotfiles/Utils/make_title.sh
2013-10-24 00:01:52 +02:00

14 lines
290 B
Bash
Executable file

#!/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