This is a feature that works very well in bash and is easy to do:
*Remember you need the double brackets for this specific test even though a normal if would not require them
variable="hi there"
if [[ "$variable" = hi* ]]; then
echo "yes it contains hi"
fi
bash, wildcard, comparisons, matchingthis, feature, brackets, variable, quot, echo, contains, fi,