Created
August 18, 2011 19:21
-
-
Save revolunet/1154920 to your computer and use it in GitHub Desktop.
count number of lines in folder recursively
This file contains hidden or 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
| #!/bin/sh | |
| find . -type f -exec wc -l "{}" \; | awk ' { sum += $1 } END {print sum}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment