make_title: add title and artist to mp3 in dir
This commit is contained in:
parent
f30864aadb
commit
3cfdcb9925
1 changed files with 14 additions and 0 deletions
14
Utils/make_title.sh
Executable file
14
Utils/make_title.sh
Executable 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
|
||||||
|
|
Loading…
Reference in a new issue