Last active
December 28, 2015 20:39
-
-
Save fosterbrereton/7558859 to your computer and use it in GitHub Desktop.
Command line cookbook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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