On Fri, 7 Oct 2022 at 14:19, Matthias Petermann <[email protected]> wrote:
>
>
> - Can what I have in mind already be solved (differently or more
> elegantly) with existing tools from the base system?
>
It's not elegent, but depending on your shell you can abuse tee to do
something like:

$ echo -e "alert|alert thing\ninfo|less important\n" |
 tee >(grep "^info|" | cut -c6- | logger -puser.notice) |
 grep "^alert|" | cut -c7- | logger -plocal0.notice

cheers,

Ian

Reply via email to