Answers for "bash true if grep has output"

0

bash true if grep has output

if grep -q PATTERN file.txt; then
    echo found
else
    echo not found
fi
Posted by: Guest on August-05-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language