#!/bin/tcsh
#
# Find profanity in file names and contents
#
if ($1 == "") then
    set dir = .
else
    set dir = "$1"
endif

find $dir \( -iname '*fuck*' \) \
	-o \( -name '*shit*' \) \
	-o \( -name '*piss*' \) \
	-o \( -name '*cunt*' \)

find $dir -type f -exec egrep -ni "fuck|shit|piss|cunt|asshole" {} \; -print
