1 #!/bin/bash 2 3 for f in *.cpp *.h 4 do 5 echo "// $f" 6 cat "$f" 7 echo 8 echo 9 done | grep -v '^/\*' | grep -v '^ \*' | grep -v '^ \*/' | grep -v '_H$' 10