1 2 3 4 5 6 7 8 9 10 11 12
if grep -q 'ASP' "$f"; then echo "found" else echo "not found" fi $f becomes tests/* It never prints found. Output of file tests/input-ASP-2.txt tests/input-ASP-2.txt: ASCII text, with no line terminators