Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

condition expected: grep

if [ "$(cat textfile.txt | grep 'search string')" = "" ]; then; echo "some string"; fi;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #condition #grep
ADD COMMENT
Topic
Name
6+6 =