I have searched for this and expected to find hundreds of solutions yet found none !
I would like to read the STDOUT stream and wait for a specific string to appear,
From this unix.stackexchange answer I got following solution:
cmd_which_streams_new_lines \ | while read -r line; do # process your line here echo "${line}" # when you're done, break the loop (be prepared for messy stderr) done