-
-
Command to Print the 3rd Argument
What is the command to print the 3rd argument within this variable var={123 def ghi 456};
a) echo $3v
b) echo $v3
c) echo$3$v
d) None of these -
-
-
Identify the Mistake
What is wrong with the code
a=0 b=0 IF [$a -eq $b] then echo a is equal to b else echo " a is not equal to b" fi
a) Variables should be assigned on individual rows not next next
b) in if statement there should be space after "[" and before "]"
c) first echo statement should be enclosed within ""
d) IF and FI should be in lower case -
Unix Programming Interview Questions
Ans