Last active
December 30, 2017 10:37
-
-
Save mattravenhall/cd9c9019f1a981ee13917885c0e414e3 to your computer and use it in GitHub Desktop.
Revisions
-
Matt Ravenhall revised this gist
Dec 30, 2017 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,10 @@ input='' if [ "$1" = '' ]; then input='quit' echo "Please provide file to search as 'grepWrapper.sh <fileToSearch>'" fi while [ "${input}" != 'quit' ]; do echo "Please provide search sequence, or 'quit':" read input -
Matt Ravenhall revised this gist
Dec 30, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,6 +4,6 @@ while [ "${input}" != 'quit' ]; do echo "Please provide search sequence, or 'quit':" read input grep ${input} $1 echo '' done -
Matt Ravenhall created this gist
Dec 29, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ input='' while [ "${input}" != 'quit' ]; do echo "Please provide search sequence, or 'quit':" read input grep ${input} <fileToSearch.txt> echo '' done