Here this will get you the total lines, total files and average for all
.c and .h files in your current directory and below. If you just want .c
or just .h then modify the grep.
lc=0;fc=0;for i in `find ./ | grep -E "(\.c|\.h)$"`; do fc=$[$fc+1];
lc=$[$lc+`wc -l $i | awk '{ print $1 }'`]; done;echo "Lines: $lc Files:
$fc Average: $[$lc/$fc]";
running on 1.2 on my dev box (got bunch of extra c files) I get,
Lines: 251510 Files: 945 Average: 266
(isn't linux command line great!)
-----Original Message-----
From: users-bounces(a)openser.org [mailto:users-bounces@openser.org] On
Behalf Of Klaus Darilion
Sent: 04 July 2007 08:03
To: syagel(a)packetcall.net
Cc: 'users'
Subject: Re: [OpenSER-Users] OpenSER lines of code
Hi Scott!
Counting lines of code is not interesting for developers. Thus, if you
really want to know the lines of code you have to count yourself (e.g
using tools like wc (wordcount))
regards
klaus
Scott Yagel wrote:
I'm trying to get an idea of the lines of code for
my OpenSER/SEMS and
our
custom apps. Whatis the approximate lines of code for
the OpenSER
core?
Thanks,
Scott Yagel
Virtual Telephone & Telegraph
syagel(a)VTandT.net
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________