Thursday 10 May 2012

Count empty lines in your source files with this pipe command

grep -Pc "^$" *.cpp *.h *.tpp | awk -F ":" '{ s += $2 } END { print s }'