What is the output of the program?
#! /usr/bin/awk -f
#This filename is text.awk
BEGIN {
print FILENAME
}
#! /usr/bin/awk -f
#This filename is text.awk
BEGIN {
print FILENAME
}A. test.awk
B. program will print nothing
C. syntax error
D. fatal error
Answer: Option B

Join The Discussion