2 ms·if grep -q foo file.txt; do echo found fi Very usefulby paulddraper 10y agoif grep -q foo file.txt; do echo found fi Very useful