Vidyalelo
Computer Science · Q167

Linux

Engineering and GATE · Computer Science · question 167

Q167

Which command on the command line provides the same output as this executable awk script? #! /usr/bin/awk -f BEGIN print "example"

A.
awk 'BEGIN {print "example"}'
Answer
B.
awk 'print "example"'
C.
awk 'print {example}'
D.
none of the mentioned

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board