Answers for "linux find file not containing string"

2

linux test if string exists in file

if grep -Fxq "string" file.txt; then 
	echo "Match"
else 
	echo "No match"
fi
Posted by: Guest on January-28-2021
0

linux find files not cintaining a string

# Find all files (here php files) which do not contain the string "somestring"
 grep -Li "somestring" *.php
Posted by: Guest on June-15-2021

Code answers related to "linux find file not containing string"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language