sprawdzanie, czy w bash

string='Haystack';

if [[ $string =~ "Needle" ]]
then
   echo "It's there!"
fi
Clumsy Coyote