#!/bin/sh for file in *.cpp *.hpp *.h ; do # non C-style headers grep -Hn '#include\s*<[^.]\+>' "$file" | grep -v '' # forbidden STL containers grep -Hn '\' "$file" grep -Hn '\' "$file" grep -Hn '\' "$file" grep -Hn '\' "$file" grep -Hn '\' "$file" grep -Hn '\[^.]' "$file" # [^.] is to ignore C's grep -Hn '\' "$file" grep -Hn '\' "$file" grep -Hn '\' "$file" done exit 0