The need to compare strings in a Bash script is relatively common and can be used to check for certain conditions before proceeding on to the next part of a script.
This is a companion discussion topic for the original entry at https://linuxconfig.org/bash-script-string-comparison-examples