Question: Assume you are using the following gawkWhile2.g program file, you may need to recreate the program: BEGIN{ n = 0 while ( n < 20

Assume you are using the following gawkWhile2.g program file, you may need to recreate the program:

BEGIN{ n = 0 while ( n < 20 ) { print "2*" n, 2*n n++ } }

What would be the output from running the following command?:

gawk -f gawkWhile2.g | grep "8$" | gawk '{print $2}' | grep 2

2*10 20 2*11 22 2*12 24 2*13 26 2*14 28 2*15 30 2*16 32 2*17 34 2*18 36 2*19 38
28
8 18 28 38
38

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!