BASH - How do I compare two string variables in an if statement
經安全檢測,此網站為安全網站,請放心前往原始網址!
BASH - How do I compare two string variables in an if statement
I'm trying to get an if statement to work in bash (using ubuntu): #! ... For string
comparison, use: if [ "$s1" == "$s2" ]. For the a contains b , use: ... $ if ...