DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
grep string in file
if
grep
-Fxq
"pattern_to_search"
file.txt
;
then
#check if pattern string in file
#do something
fi
Source by www.howtoforge.com #
PREVIOUS
NEXT
Tagged:
#grep
#string
#file
ADD COMMENT
Topic
COMMENT
Name
1+1 =
Submit