[nflug] Source Code Line Counter

Franklin Kumro Jr fkumro at gmail.com
Tue Jan 23 10:38:47 EST 2007


Works perfect! Thanks :)

On 1/23/07, Mark T. Valites <mark-nflug at valites.net> wrote:
> 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
>


-- 
Frank
Shenanigans!!
I do the voodoo that I do do with sudo!
http://www.syncoder.com
_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug



More information about the nflug mailing list