3 # this script looks for any files containing offensive language, but one must
4 # fill out the list of inappropriate language to censor. this list is stored
5 # in a file in the user's home folder called ".badlanguage".
6 # given the bad word list (with one obscenity word per line), this will find
7 # any files that have those words in them and print them out.
9 OBSCENITY_FILE="$HOME/.badlanguage"
11 if [ ! -f "$OBSCENITY_FILE" ]; then
12 echo "This script requires a file with obscenities at: $OBSCENITY_FILE"
13 echo "The file should contain all obscene words that you wish to locate"
14 echo "in your files. Each obscene word should be listed one per line in"
15 echo "the bad word file."
19 # replace the line feeds with a grep pipe.
20 obscene_line="$(echo $(cat $OBSCENITY_FILE) | sed -e 's/ */\\|/g')"
21 #echo "obscenities: $obscene_line"
23 bash "$FEISTY_MEOW_SCRIPTS/buildor/search_code.sh" "$obscene_line" $*