Answer to Question #255995 in UNIX/Linux Programming for Kar

Question #255995
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

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS