#!/bin/bash foo="qux" bar="qux" if [ "$foo" = "$bar" ]; then echo "The strings are equal." else echo "The strings aren't equal." fi