This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Counting lines of source code
- From: Keen Wayne A Contr AFRL/MNGG <keenwa at eglin dot af dot mil>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Tue, 13 Aug 2002 08:43:46 -0500
- Subject: Re: Counting lines of source code
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