dropping old script
[feisty_meow.git] / scripts / database / show_stripper.sh
1 #!/bin/bash
2 if [ -z "$1" -o -z "$2" ]; then
3   echo "This program accepts a file name with CSV formatted movie database"
4   echo "information and extracts a particular show's episodes.  You need to"
5   echo "provide the file name as the first parameter and the show name as"
6   echo "the second parameter."
7   exit 2
8 fi
9 cat "$1" | grep -i "$2" | sed -n -e 's/^\"\([a-zA-Z0-9][a-zA-Z0-9 ]*\)\",\"\([^\"][^\"]*\)\",\"\([^\"][^\"]*\)\"$/"\2" -- \3  [\1]/p' | grep -i ".*$2.* -- " | sort | uniq
10
11