function grepmsgs () { egrep -H -n '[^\.?>!\:]\\n"$' $1 | egrep -v '([\.?>!\:][\ ]+)\\n' | egrep -v '\"[a-zA-Z\-]+:' | egrep -v "TRANSLATORS" | egrep -v '\"\\n\"';} for a in `find $1 -type f -name '*.cc' -o -name '*.cpp'`; do grepmsgs $a; done | sort > /tmp/$1.msgs cut -d ':' -f 1 /tmp/$1.msgs | sort -u > /tmp/$1.files