Re: [dev] [grep-notify] A simple notifier when stdout prints a pattern

From: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Sat, 28 Jun 2014 23:24:51 +0200

Rob wrote:
> Perhaps see how using the bell character works for you. You could even do it
> with a shell script:
>
> ... | grep 'your-regex' | while read line; do printf '\x7'; done

This is probably not helpful since it does only print the matching lines. Try
sed to insert the bell character:

... | sed 's|\([^(]nickname\)|\x7\1|'

I left the [^)] out, since it could be the case, that someone mentions your nick
at the end of his message.

--Markus
Received on Sat Jun 28 2014 - 23:24:51 CEST

This archive was generated by hypermail 2.3.0 : Sat Jun 28 2014 - 23:24:06 CEST