blob: 24b4cd0decc249a5a390feea3b4a51f559750c58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# Filter out existing tracks
tmp=`mktemp /tmp/flt.XXXXXX`
find "$@" -type f -name '*.mp3' |
xargs -I {} basename -s.mp3 "{}" |
sed 's/\(.*\) - \(.*\)/\2\t\1/' > $tmp
fgrep -vf $tmp
rm $tmp
|