DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
condition expected: grep
if [ "$(cat textfile.txt | grep 'search string')" == "" ] ; then echo "It's not there!" fi
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#condition
#grep
ADD COMMENT
Topic
COMMENT
Name
2+5 =
Submit