Answers for "linux check if filename contains string"

1

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

Code answers related to "linux check if filename contains string"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language