[thelist] Line counting tool...

Ben Bright bright at seedling.com
Tue Apr 9 15:26:47 CDT 2002


I'd recomend installing CygWin and using the gnu command line utilities.

In the case mentioned in this thread, 'wc' would be useful for counting
lines, words and characters in a file ... and 'find' would give you the
directory tree listing you are looking for. 'cat' will give you the
text of the files. Using them together, you can
get the info you are looking for like so.

  cat `find * | grep -i inc$` | wc

Oh ... the 'grep' part filters the find to only return files ending in a
case-insensitive 'inc'.

And there are a zillion other, perhaps more efficient, alternatives to the
above that will achieve the same.

Good luck.

~ben

> > Does anyone know if there is a tool available for Windows that will
> descend
> > all the text files (html, asp etc) in a directory structure and count the
> > total number of lines?
> >
> > I know lines of code are a terrible metric for judging performance, but
> I'm
> > curious to see how much my colleague and I have churned out in the last 18
> > months ;-) I'm guessing somewhere between 50k and 100k lines of code in
> our
> > website.
> >
> > .steve
> >
> >
> > ----------------------------------
> >  Cookstour - http://cookstour.org
> > ----------------------------------
> > --
> > For unsubscribe and other options, including
> > the Tip Harvester and archive of thelist go to:
> > http://lists.evolt.org Workers of the Web, evolt !
> >
> >
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !
>




More information about the thelist mailing list