1. What does this do? if [sy-eq0]; then echo "No arguments" fi 2. What does this do? if [ "Sname" = "Bro" ]; then echo "
Posted: Thu Jul 14, 2022 2:19 pm
1. What does this do? if [sy-eq0]; then echo "No arguments" fi 2. What does this do? if [ "Sname" = "Bro" ]; then echo "Welcome back bro!" fi 3. Explain the difference between -eq and = in the previous 2 questions. 4. What does this do? if [ "Sword1" = " Sword2" ]; then echo "They match" else echo "The are different" fi 5. What does echo "Error!" 1>82 do? 6. What does bash −x do? 7. What does this do? for x do echo 5x done 8. What do the while and until constructs do? 9. How are the while and until constructs different? 10. What is the purpose of the case construct?