summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xflt11
1 files changed, 11 insertions, 0 deletions
diff --git a/flt b/flt
new file mode 100755
index 0000000..88797be
--- /dev/null
+++ b/flt
@@ -0,0 +1,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