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*

10
  • How did you use tee? Commented Mar 25, 2020 at 17:12
  • I was able to Tee to a log file, but not yet to Stdout console. Commented Mar 25, 2020 at 17:17
  • Do you want this echo hello | tee >(grep -o h)? Commented Mar 25, 2020 at 17:28
  • @ArkadiuszDrabczyk In total I want it to (tail log) | grep "keyword" | tee>*OutToConsole* | (read var | echo var | mail ) so I can see the alert line also before it emails.....YES, that was what I was missing.. Grep in a subshell does stsout to console Thanks! .. for the record, so does Echo. Commented Mar 25, 2020 at 17:32
  • tail log | grep "keyword" | tee >(mail)? Commented Mar 25, 2020 at 17:37