While working on different projects, sometimes you might be required to provide a report or statistics of your progress, or simply to calculate the value of your code.
There is this simple yet powerful tool called “cloc – count lines of code” that allows you to count all number of your code and exclude comments and blank lines at the same time.
It is available in all major Linux distributions and supports multiple programming languages and file extensions and does not have any specific requirements to be used.
In this tutorial you are going to learn how to install and use cloc on your Linux system.
Use this link to complete article :- https://www.tecmint.com/cloc-count-lines-of-code-in-linux/