REQUEST --> source code line counter wanted

David Sherman dave at lsuc.on.ca
Thu Jul 19 14:41:59 AEST 1990


In article <483 at tci.UUCP> mitchell at tci.UUCP (Rob Mitchell) writes:
>Hi,
>
>	Yeah, I could probably create one pretty quickly, but what
>the heck?!!  Does anyone have a need little program to count the
>source code lines (minus comments, declaration headings, etc.) for
>unix systems??

Would
	grep -v "^#include .*\.h" $1 | /lib/cpp - | grep -v "^$" | wc -l

come close?

David Sherman
The Law Society of Upper Canada
-- 
Moderator, mail.yiddish
{ uunet!attcan  att  utzoo }!lsuc!dave          dave at lsuc.on.ca



More information about the Comp.unix.questions mailing list