bashterminallines-of-code

How to calculate the number of lines in source code


As the title says how i can calculate the total number of lines in a source code folder using bash commands


Solution

  • Use sloccount

     "SLOCCount", a set of tools for counting physical Source Lines of Code (SLOC) in a large number of languages of a potentially large set of programs