kdlug
7/10/2018 - 8:05 AM

bash-grep-line-in-file.sh

#!/bin/bash
if grep -xq "LINE_TO_BE_MATCHED" FILE_TO_LOOK_IN ; then
  # code for if it exists
else
  # code for if it does not exist
fi