Skip to content

Instantly share code, notes, and snippets.

@olegwtf
Created June 15, 2011 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olegwtf/1026950 to your computer and use it in GitHub Desktop.
Save olegwtf/1026950 to your computer and use it in GitHub Desktop.
find . -type f -regextype posix-egrep -regex '.*\.pm|.*\.c|.*\.h|.*\.xs' ! -regex '\./\.git/|.*ppport\.h' | while read fname; do perl -ne 'print unless /^=h/ .. /^=cut/' < $fname; done | sed '/^$/d;/^#/d' | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment