What will be the output for below mention shell script
$ [ 5 -lt 10 ]; echo $?
1
0
null
error
Answers
Answered by
2
Answer:
Calculate the number of molecules of sulphur (S8) present in 16 g of solid sulphur. ∴ 16 g of sulphur = 16 256 1 16 = moles = 0.125 moles 1 mole of S8 molecules = 6.023 × 1023 number of molecules ∴ 1 16 mole of S8 = 6.023 × 1023 number of molecules × 1 16 .
Answered by
0
It will give an Error as the output.
Explanation:
- In bash -lt means less than.
- It is used for condition checking.
- The correct syntax for getting this code run in bash is [ 5 -lt 10 ]; echo $?
- Echo $? Returns the exit status of the last command. One will get 127. This is the exit status of the last executed command that ended with an error. When the command completes successfully, it exits with an exit status of 0.
#SPJ3
Similar questions