Merge branch 'master' of feistymeow.org:feisty_meow
[feisty_meow.git] / scripts / show_db / movie_stripper.sh
diff --git a/scripts/show_db/movie_stripper.sh b/scripts/show_db/movie_stripper.sh
new file mode 100644 (file)
index 0000000..b8c961f
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+if [ -z "$1" ]; then
+  echo You must supply a file name to strip out the unique movie or show
+  echo names from...
+  exit 2
+fi
+cat "$1" | sed -e 's/^\"\([a-zA-Z0-9][a-zA-Z0-9 ]*\)\",\"\([^\"][^\"]*\)\".*$/\2/' | sort | uniq 
+
+