SpiceQA
Questions
Tags
Users
Badges
How do I compare two strings in if condition in bash
user_3011638
0
Created Dec 23, 2013
Edited Dec 23, 2013
Viewed 22027
Follow
s="STP=20" if [[ "$x" == *"$s"* ]]
The
if
condition is always false; why?
if-statement
bash
8
0
Add comment
+
Share
5 Answers
Related