Which of the following can be used in place of square brackets used in if condition? (a) Curly braces (b) test command (c) check command (d) All of the above
Answers
Answered by
8
curly brackets is the correct answer
Answered by
8
"Option (b) test command
Test command can be used in the place of square brackets that is used in if condition. In the execution of shell commands test command is used for conditional expression. The test command automatically exits after determining the expression. This replaces the square brackets ([ and ]) in the if condition and the expression can be accompanied with test. When the return value is 0, the evaluated expression is true, else it is false."
Similar questions
Hindi,
6 months ago
Math,
6 months ago
English,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago