Created
February 24, 2019 09:26
-
-
Save iamirulofficial/a500ddf6797b04465111b91cb2608b26 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
#Program: using if and else | |
if grep "$1"$2 | |
then | |
echo "pattern found" | |
else | |
echo "pattern not found" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment