Count total number of lines in a project excluding certain folders or files

Using the command:

wc -l + `find . -name \* -print` 

You can get the total number of lines of all files inside a folder.

But imagine you have some folders (for example libraries), which you don't want to count their lines because you didn't write them.

So, how would you count the lines in a project excluding certain folders?

11
задан JasonMArcher 17 July 2015 в 21:43
поделиться