Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

grep if

if echo "40922|OPR MO 12345|OPR MO 12345|12345|202|local|LMNO" | grep -q "MO"
  then echo "FOUND"
  else echo "NOT FOUND"
fi
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #grep
ADD COMMENT
Topic
Name
3+1 =