#!/bin/bash
if grep -q <to_find> <file>
then
   echo "OK";
else
   echo "NOT OK";
fi

Updated: