Useful one-liner to count the number of blank lines in a file: grep -c ^$ filename. #unix