1
I've got a command line app that outputs lots of information to stdout.
How can I terminate the program when stdout contains a certain string?
e.g. something like:
my_program | terminate_if_contains ERROR
The reason I want to do this is because the program is written by a third party, and outputs lots of ERRORS to stdout, but I want to stop on the first error, so I don't have to wait until the program finishes.
1nice! I didn't know about that
/q
option... cool! – Brad Parks – 2016-06-16T19:24:50.310