Question #255995

Write a script to print to compare two strings "Linux" and "Unix".

Expert's answer

# 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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS