Skip to content

Instantly share code, notes, and snippets.

@benwei
Created July 16, 2013 10:43
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 benwei/6007650 to your computer and use it in GitHub Desktop.
Save benwei/6007650 to your computer and use it in GitHub Desktop.
one line to list line count of c file
#!/bin/sh
find -name "*.c" | while read fn ; do wc -l $fn ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment