Write a shell script to compare two strings input by the user for equality.
read -p "Enter a string: " str1 if [ $str1 == "linux" ] then echo "linux" elif [ $str1 == "unix" ] then echo "unix" else echo "Neither linux nor unix" fi
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments