how can I count lines of code?

2013-03-27 Thread larry google groups
I am curious, is there a simple command line script I could use to count lines of code? Or is there some trick in emacs that I can do? I'd like to know how many lines there are, minus the comments and white space. -- -- You received this message because you are subscribed to the Google

Re: how can I count lines of code?

2013-03-27 Thread Nick Ward
Not sure if this is the correct place to be asking this, but sed '/^\s*$/d;/^\s*;/d' path/to/your/file | wc -l On Wed, Mar 27, 2013 at 7:36 PM, larry google groups lawrencecloj...@gmail.com wrote: I am curious, is there a simple command line script I could use to count lines of code? Or is

Re: how can I count lines of code?

2013-03-27 Thread Haim Ashkenazi
Hi I know of two tools. Both of them however count docstrings as code: - cloc - http://cloc.sourceforge.net - lein-vanity - A leiningen plugin ( https://github.com/dgtized/lein-vanity). HTH On Wed, Mar 27, 2013 at 9:36 PM, larry google groups lawrencecloj...@gmail.com wrote: I am

Re: how can I count lines of code?

2013-03-27 Thread Michael Gardner
On Mar 27, 2013, at 14:36 , larry google groups lawrencecloj...@gmail.com wrote: I am curious, is there a simple command line script I could use to count lines of code? Or is there some trick in emacs that I can do? I'd like to know how many lines there are, minus the comments and white

Re: how can I count lines of code?

2013-03-27 Thread larry google groups
Thank you, all. On Wednesday, March 27, 2013 4:01:31 PM UTC-4, Michael Gardner wrote: On Mar 27, 2013, at 14:36 , larry google groups lawrenc...@gmail.comjavascript: wrote: I am curious, is there a simple command line script I could use to count lines of code? Or is there some