[nflug] Source Code Line Counter
Mark T. Valites
mark-nflug at valites.net
Tue Jan 23 10:25:55 EST 2007
On Tue, 23 Jan 2007, Franklin Kumro Jr wrote:
> Just for shits n' giggles I was interested in how many lines of code
> some of my projects are. Does anyone know of a utility that will count
> the lines? I'm no bash guru (actually I only use it for basic tasks) so
> I know you can do something in bash that will recurse dir structure and
> run wc (lines) on the files. Then print out the total count...anyone
> want to take a stab at this for me? Or point in the the direction of a
> utility ?
There's a bunch of ways to do what you want, but this should get you
started:
$ find /path [ options ] -exec cat {} \; | wc -l
_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug
More information about the nflug
mailing list