Write a shell script to compare two strings input by the user for equality.
1
Expert's answer
2021-12-11T05:52:04-0500
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
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment