Skip to content

Instantly share code, notes, and snippets.

@oshow
Created September 23, 2011 19:17
Show Gist options
  • Save oshow/1238206 to your computer and use it in GitHub Desktop.
Save oshow/1238206 to your computer and use it in GitHub Desktop.
using grep for if condition
if grep -i Error log.txt
then
echo "found error"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment