How to compare strings in Bash
Using variables in if statements If you want to do something when they don’t match, replace = with !=. You can read more about string operations and arithmetic operations in their respective documentation. Why do we use quotes around $x? You want the quotes around $x, because if it is empty, your Bash script encounters … Read more