Counting lines of source code

Keen Wayne A Contr AFRL/MNGG keenwa@eglin.af.mil
Tue Aug 13 06:54:00 GMT 2002


If you happen to be on a Unix system, and happen to be counting SLOC in say,
C or Ada or Pascal, you can do something like
this:

grep -c ";" test.cpp

Now, this will also count commented out lines of code, but it is free and
really easy.

:-)

Wayne



More information about the Gcc-help mailing list