how to compare two strings in unix shell script code example Example: bash compare two strings if [ "$s1" == "$s2" ] then stuff fi