Write a script to print to compare two strings "Linux" and "Unix".
1
Expert's answer
2021-10-26T14:18:33-0400
# Write a script to print to compare two strings "Linux" and "Unix".
lhs="Linux"
rhs="Unix"
if [ "$lhs" == "$rhs" ]; then
echo Strings are equal
else
echo String are not equal
fi
Comments
Leave a comment