Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!munnari.oz.au!metro!cluster!necisa!boyd From: boyd@necisa.ho.necisa.oz.au (Boyd Roberts) Newsgroups: comp.software-eng Subject: Re: WANTED: "C" code line counter program Message-ID: <2047@necisa.ho.necisa.oz.au> Date: 18 Mar 91 01:27:05 GMT References: <1991Mar13.201601.1395@ssd.kodak.com> Organization: NEC Information Systems Australia Pty. Ltd. Lines: 12 What about? $ grep -c '[{});]$' *.c Or? $ egrep -c '(^#)|([{});]$)' *.c Boyd Roberts boyd@necisa.ho.necisa.oz.au ``When the going gets wierd, the weird turn pro...''