how to count # of functions in a c/c++ project repository
hi,
does anyone know how to count # of functions in a c/c++ project repository using bash or csh?
is there a mixture of grep/wc/and redirecting operators.
say for instance there is a proj directory called Foo with subfolders A,B,C.
ctags with --c-types=f will collect all the functions for you.
-R will recursivly go into sub-dir a,b,c.
sed is needed to remove the TAG entries introduced by ctags
Also to remove all lines ending with m i.e. from man ctags
m class, struct, or union members
functions is the file that holds all the functions under foo
And finally wc -l gives you the count you are looking for.
Have a look at man ctags. Will help you if you have constraints other than functions.
I have a project tree like that.
after running find command with the -no -empty option, i am able to have a list of non empty directory
DO_MY_SEARCH="find . -type d -not -empty -print0"
MY_EXCLUDE_DIR1=" -e NOT_IN_USE -e RTMAP -e NOT_USEFULL "
echo " " > $MY_TEMP_RESULT_1
while... (2 Replies)
Most of my commands are returning this error on RHEL 6 64 bit:
Also I tried installing many sofwtares, but it fails to correctly work. For example I treid installing dos2unix:
# rpm -ivh dos2unix-5.3.3-5.ram0.98.src.rpm
1:dos2unix warning: user mockbuild does not... (0 Replies)
A new project was posted on your project board.
Project title: Bash Shell Tutoring
Estimated Budget:
$50/hr
Start date:
Immediately
Required skills:
Linux, Bash, Shell, UNIX
I work as a datawarehouse designer and developer.
Although I usually stick to the role of an analyst,... (0 Replies)
I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line
if
then... (8 Replies)
Someone know good software repositories for Solaris 10?
I'm searching one with updated packages like Samba3,smbldaptools,openldap,etc
Thanks (2 Replies)
i have two doubts..
1. what is the use /etc/project file. i renamed this file and when i tried to switch user or login with some user account the login was happening slowly. but when i renamed it to original name it was working fine... why so?
2. unix already has useradd and grouadd for... (4 Replies)
Hi Gurus of Unix
I use the Package Manager of OpenSolaris
I set my Package Manager : "http://pkg.sunfreeware.com:9000/"
But when I try to install packet appear the following Error:
Please check the network connection.
Is the repository accessible?
Transfer from... (0 Replies)
We have a system running ssh. When a user logs in, they do not get the project they are assigned to (they run under "system"). I verify the project using the command "ps -e -o user,pid,ppid,args,project". If you do a "su - username", the user does get the project they are assigned to (and all... (2 Replies)