Skip to content

Instantly share code, notes, and snippets.

@frankus
Created August 12, 2015 23:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frankus/5ce28924819a812a2035 to your computer and use it in GitHub Desktop.
Save frankus/5ce28924819a812a2035 to your computer and use it in GitHub Desktop.
One-liner to find filenames whose header comments no longer match
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