Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux check line exist in file

[ grep -Fxq "string" file.txt ] || echo "not found"
 
PREVIOUS NEXT
Tagged: #linux #check #line #exist #file
ADD COMMENT
Topic
Name
5+4 =