bash if file contains string

Shell
if grep -q SomeString "$File"; then
  Some Actions # SomeString was found
fi
Source

Also in Shell: