#!/bin/bash                                                   #!/bin/bash

string='www.sysadm.kr';                                     string='www.sysadm.kr';


if [[ $string == *"sysadm"* ]]                            if [[ $string =~ .*sysadm.* ]]
then                                                           then
  echo "It's there!";                       또는              echo "True"
else                                                            else
echo "There is no String!"                                   echo "False"
fi                                                               fi