|
|
|
7
I found this script online, and decided that I would modify it for my needs. As a developer, I like to know how many actual lines of code I have written--not including any comments.
It outputs in a very simple way:
Including Comments: NNN
Without Comments: NNN
One very practical, and quick, way to determine how many lines of code a project has is to pipe it through a find:
find /usr/share/php -name "*.php" -o -name "*.inc" | xargs count-code
If your code is in files of another type (i.e., .c, .h, .cpp, etc), then simply change the extensions and add more '-o -name "*.ext"' tags. If you have directories that you don't want to be counted, simple throw a "| grep -v [path/to/excluded/directory] |" inbetween the find and the xargs, and they will not be counted.
It outputs in a very simple way:
Including Comments: NNN
Without Comments: NNN
One very practical, and quick, way to determine how many lines of code a project has is to pipe it through a find:
find /usr/share/php -name "*.php" -o -name "*.inc" | xargs count-code
If your code is in files of another type (i.e., .c, .h, .cpp, etc), then simply change the extensions and add more '-o -name "*.ext"' tags. If you have directories that you don't want to be counted, simple throw a "| grep -v [path/to/excluded/directory] |" inbetween the find and the xargs, and they will not be counted.
1
This is a Rolling-Over Icon I'd like to use for my online laptop battery shop.
You only have to prepare 2 pictures, one is the common and the other is after rolling-ove
You only have to prepare 2 pictures, one is the common and the other is after rolling-ove







