I have files that include code within them.
I'd like to create an awk script that would count number of lines of code only within a file, that is anything that doesn't have a comment.
/* comment */ is a comment
/*comment*/ main() is one line of code despite there is a comment before the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.