This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]