I need to find the number of blank lines from a particular directory in all the files that ends with '.h' extension.
Thanks in advance
OP's additional information copied from comment below
First displayed all the .h files using the command
ls /usr/include/ | grep '.h$'.
Now, I dont know how to proceed to open all those .h files and how to find blank lines.
I have tried
grep -n ^$ filename | wc -l, to find the number of blank lines for a particular file.
But I need to know how to make both commands to work together. Please help.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)