Added exit on incorrect I/O setup, but no error messages
function grep