Pesan BASH Pencocokan parsial

if [[ $string == *"foo"* ]]; then
  echo "It's there!"
fi
Dopey Diplodocus