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