Created
September 23, 2011 19:17
-
-
Save oshow/1238206 to your computer and use it in GitHub Desktop.
using grep for if condition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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