SyntaxFix
Write A Post
Hire A Developer
Questions
This command count number of non-blank lines. cat fileName | grep -v ^$ | wc -l grep -v ^$ regular expression function is ignore blank lines.
cat fileName | grep -v ^$ | wc -l