#!/bin/sh #1) Create a file of words you want to filter out. Save it as "stoplist" #2) cat | ./notin.sh > file without any lines that include entries in stoplist for dont in `cat stoplist` do strings=$dont\|$strings done if [ -n "$strings" ]; then strings=`echo $strings|sed s/\|$//` expr=" -v $strings -E" grep $expr else cat fi