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,
7 months ago
Social Sciences,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago