Created
August 23, 2014 22:37
-
-
Save zakelfassi/754f4dc125a64303d47c to your computer and use it in GitHub Desktop.
This file contains 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
# Count lines in a files (zsh, bash) | |
cat big-file.sql | sed '/^\s*$/d' | wc -l | |
# Count result of search ... | |
grep 'something' big-file.sql | sed '/^\s*$/d' | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment