Skip to content

Instantly share code, notes, and snippets.

@fosterbrereton
Last active December 28, 2015 20:39
Show Gist options
  • Save fosterbrereton/7558859 to your computer and use it in GitHub Desktop.
Save fosterbrereton/7558859 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment