Created
September 10, 2013 09:51
-
-
Save emres/6507262 to your computer and use it in GitHub Desktop.
Finds the .java or .xml files in the ~/dev and prints the number of lines, excluding lines with blanks.
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
find ~/dev -regextype posix-egrep -iregex ".*(java|xml)" -print0 | xargs -0 -I sourceFile sed '/^[ \t]*$/d' sourceFile | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment