If app.conf contains no line matching "timeout", what does echo $? print?
grep timeout app.conf echo $?
102127
grep exits 0 when a line matches, 1 when nothing matches, and 2 on errors such as a missing file.
Play Linux CLI ▸