Skip to content

Instantly share code, notes, and snippets.

View fosterbrereton's full-sized avatar

Foster Brereton fosterbrereton

View GitHub Profile
@fosterbrereton
fosterbrereton / command_line_cookbook.sh
Last active December 28, 2015 20:39
Command line cookbook
# Within a directory, output all c++ sources and headers that DO NOT contain the word "Copyright"
# (i.e., are likely missing a copyright header.)
#
# (Or use -l to find files that DO contain the word)
find . -name '*.[c|h]pp' -print | xargs grep -L Copyright
# Open a manpage in BBEdit all cleaned up
man $1 | col -bx | bbedit -t "manpage: $1" --clean --new-window