I'm wanting to constantly monitor syslog and perform some computations after a regex pattern appears, and use the grep output in the command, as well as continue to monitor for new matching lines. The best way I can think to accomplish this is using
tail -f and piping this output to
grep. The only issue is I don't know of a way to run a new command based off each new line of output and continue until termination.
Any ideas on what I could use here?