Thank you very much for the help. Some of the suggestions you gave made me want to smack myself in the head because I overlooked them. Thank you again for the help.
I have tried a few things for this problem, the latest being:
{ field = $2
while ( field <= NF )
{
tot += field;
field += 2
}}
END { printf("$d\n", tot) }
It is printing out $d for output. I have tried other scripts but have overwritten...
Hello, new to the site and I'm looking for help. I'm doing an Awk tutorial to try and get used to it for recreative use. I found a tutorial that I have been going through until I came across this one particular problem.
Write an awk program to print out the total number of computers held by...
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.