Software Archive
Read-only legacy content
17061 Discussions

lines of code in your product? :)

anuj_goyal
Beginner
540 Views
how many lines of code do you have in your product? :)
This script is not exact by any means so if you know of a better way please let me know (I didn't take the time to squish the two find commands into one).
find . -name *.cpp -exec wc {} ; | awk '{a+=$1;print a}' |tail -1
find . -name *.h -exec wc {} ; | awk '{a+=$1;print a}' |tail -1
This is just for fun, please give name, company, product and arough estimate (and maybe let me know what your product does).
Anuj Goyal (Senior Software Engineer)
Siebel Systems (soon to be bought by Oracle).
Siebel Analytics
BI toolset (product competes with Microstrategy, Cognos, Hyperion, BusinessObjects).
Code:
$ find . -name *.cpp -exec wc {} ; | awk '{a+=$1;print a}' |tail -1 
830449 
$ find . -name *.h -exec wc {} ; | awk '{a+=$1;print a}' |tail -1 
222048


~1 million LOC.
*standard disclaimers apply*
- SLOC (source line of code) is just a certain type of measure:
- the above scripts are not exact.
I'm just asking for input from other developers.

Message Edited by anuj.goyal@gmail.com on 10-31-2005 11:46 AM

0 Kudos
3 Replies
Intel_Software_Netw1
540 Views
Greetings fromIntel Software Network Support,
Thank you for posting your discussion on the Watercooler/Catchall forum.
It is unclear from your post whether you asking for help or just asking for input from other developers. If you wish Intel Software Network to assist, please give us additional detail regarding your question.
Best regards,
Jim A
Intel Software Network Support
http://www.intel.com/software
Contact us

Intel is a registered trademark of Intel Corporation or its subsidiaries in the United States and other countries.

*Other names and brands may be claimed as the property of others.

Message Edited by intel.software.network.support on 11-15-2005 08:42 PM

0 Kudos
jim_dempsey
Beginner
540 Views

A Fortran project with 218,425 lines more or less.

Jim

0 Kudos
anuj_goyal
Beginner
540 Views
how many lines of code do you have in your product?
This script is not exact by any means so if you know of a better way please let me know (I didn't take the time to squish the two find commands into one).
find . -name *.cpp -exec wc {} ; | awk '{a+=$1;print a}' |tail -1
find . -name *.h -exec wc {} ; | awk '{a+=$1;print a}' |tail -1
This is just for fun, please give name, company, product and arough estimate (and maybe let me know what your product does).
Anuj Goyal (Senior Software Engineer)
Siebel Systems (soon to be bought by Oracle).
Siebel Analytics
BI toolset (product competes with Microstrategy, Cognos, Hyperion, BusinessObjects).
Code:
$ find . -name *.cpp -exec wc {} ; | awk '{a+=$1;print a}' |tail -1 
830449 
$ find . -name *.h -exec wc {} ; | awk '{a+=$1;print a}' |tail -1 
222048


~1 million LOC.
*standard disclaimers apply*
- SLOC (source line of code) is just a certain type of measure:
- the above scripts are not exact.
I'm just asking for input from other developers.
0 Kudos
Reply