in reply to Re: Re: LOC
in thread Counting lines of C code
Or equivalently, (still naive as dws points out, but a few less keystrokes :-)
perl -lne'}{print$.' file1.c file2.c
Update: Massaged one-liner, but still manage to lose by 2 strokes...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: LOC
by Chmrr (Vicar) on Jul 25, 2002 at 20:28 UTC |
In Section
Seekers of Perl Wisdom