http://qs1969.pair.com?node_id=1224904


in reply to Re^2: search for a pattern in file without opening the file
in thread search for a pattern in file without opening the file

Yes, as explained in the Exit Status section of the man page.