⟩ What is the output of the program? #! /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
b) program will print nothing
Explanation:
The built-in variable FILENAME is the name of file that awk is currently reading and in this program there is no file listed on the command line.
Output:
root@ubuntu:/home/google# ./test.awk
root@ubuntu:/home/google#