14 lines
290 B
Bash
Executable file
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
|
|
|