Newsgroups: comp.unix.questions Path: utzoo!lsuc!dave From: dave@lsuc.on.ca (David Sherman) Subject: Re: REQUEST --> source code line counter wanted Message-ID: <1990Jul19.044159.23212@lsuc.on.ca> Keywords: source code Organization: Law Society of Upper Canada, Toronto References: <483@tci.UUCP> Distribution: comp Date: Thu, 19 Jul 90 04:41:59 GMT In article <483@tci.UUCP> mitchell@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@lsuc.on.ca