shell if equal string code example
Example 1: bash if var equals string
source=""
samples=("")
if [ $1 = "country" ]; then
source="country"
samples="US Canada Mexico..."
else
echo "try again"
fi
Example 2: bash compare two strings
if [ "$s1" == "$s2" ]
then
stuff
fi