DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
linux test if string exists in file
if grep -Fxq "string" file.txt; then echo "Match" else echo "No match" fi
PREVIOUS
NEXT
Tagged:
#linux
#test
#string
#exists
#file
ADD COMMENT
Topic
COMMENT
Name
6+1 =
Submit