string="this string contains a test substring"
if [[ "$string" == *test* ]]
then
print "substring found"
fi
Countless times I've found solutions on the net: I'll try to give back some, by sharing interesting things I'll come across.
string="this string contains a test substring"
if [[ "$string" == *test* ]]
then
print "substring found"
fi
