Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 2
    tee the command's output to a separate process that handles the conditionals (could be a script or a function); if you need to spawn the 4x conditionals in parallel then tee the command's output to 4x separate processes; run a web search on tee process substitution for examples Commented Apr 10 at 2:56
  • 3
    This question is similar to: Best way to follow a log and execute a command when some text appears in the log. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. Commented Apr 11 at 6:27