Tuesday, June 7, 2022

[SOLVED] How to calculate the number of lines in source code

Issue

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


id='dv4'>

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



Answered By - ismail
Answer Checked By - David Goodson (WPSolving Volunteer)