Answers

Question and Answer:

  Home  Awk Programming

⟩ What is the output of this program? #! /usr/bin/awk -f BEGIN { a=0 do { print "google" a++ } while (a<5) } a) "google" will print 4 times b) "google" will print 5 times c) nothing will print d) syntax error

b) "google" will print 5 times

Output:

root@ubuntu:/home/google# ./test.awk

google

google

google

google

google

root@ubuntu:/home/google#

 136 views

More Questions for you: