⟩ The command "awk '{if ("9″>"10″) print "google" else print "linux"}'" a) will print "google" b) will print "linux" c) will generate syntax error d) none of the mentioned
c) will generate syntax error
Explanation:
Semicolon is required just before the else statement to parse the statement.
Output:
root@ubuntu:/home/google# awk '{if ("9″>"10″) print "google" else print "linux"}'
awk: {if ("9″>"10″) print "google" else print "linux"}
awk: ^ syntax error
root@ubuntu:/home/google#