[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Source code lines counter

From: Blair Zajac <blair_at_orcaware.com>
Date: 2006-08-11 22:45:21 CEST

Noah Slater wrote:
> Vigo,
> You can run this on *nix based systems:
> $ find . -type f | xargs cat | wc -l

You do want to prune the .svn directories and handle names with whitespace in it:

find . -name .svn -prune -o -type f -print0 | xargs -0 cat | wc -l

If you don't mind seeing the line counts for each file and run a little faster:

find . -name .svn -prune -o -type f -print0 | xargs -0 wc -l


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 11 22:46:50 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.