Awk Programming Question:
Download Job Interview Questions and Answers PDF
Define the output of the program?
#! /usr/bin/awk -f
BEGIN {
a["linux","MCQ"]="google"
print a["linux","MCQ"]
}
a) google
b) linux MCQ
c) a["linux","MCQ"]
d) syntax error
Answer:
a) google
Output:
root@ubuntu:/home/google# ./test.awk
google
root@ubuntu:/home/google#
Output:
root@ubuntu:/home/google# ./test.awk
root@ubuntu:/home/google#
Download Awk Programming Interview Questions And Answers
PDF