Created
August 12, 2015 23:16
-
-
Save frankus/5ce28924819a812a2035 to your computer and use it in GitHub Desktop.
One-liner to find filenames whose header comments no longer match
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
find . -iname "*.[mh]" -exec sed -n "2s|^// ||p" "{}" \; -exec basename "{}" \; | uniq -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment