On 14 Feb 2008, at 12:02, Nicolas Perriault wrote:
> $ find . -type f -name "*.php" -print0 | xargs -0 wc -l | grep total
Yes, that does the trick too. :)
Alexander
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On 14 Feb 2008, at 11:49, Nicolas Perriault wrote:
> $ find . -name "*.php" |cat |wc -l
A poor man's LOC count. ;)
You'll find that:
$ find ./ -name '*.php' -exec cat {} \; | wc -l
works better.
Since there doesn't really seem to be a tool (other than sloccount
(http://www.dwheeler.com/slocco
On Thu, Feb 14, 2008 at 11:49 AM, Nicolas Perriault
<[EMAIL PROTECTED]> wrote:
> $ find . -name "*.php" |cat |wc -l
Sorry:
$ find . -type f -name "*.php" -print0 | xargs -0 wc -l | grep total
(Note to self: always test your snippets)
++
--
Nicolas Perriault http://www.clever-age.com
Clever
On Thu, Feb 14, 2008 at 11:16 AM, Alexander Deruwe
<[EMAIL PROTECTED]> wrote:
> How do you calculate the LOC count for your symfony project? Is there
> perhaps a plugin I don't know about?
$ find . -name "*.php" |cat |wc -l
Should be enhanced to exclude comments and core framework files if
pr