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

From: Amadeus Folego <amadeusfolego_AT_gmail.com>
Date: Sat, 28 Jun 2014 18:33:48 -0300

On Sat, Jun 28, 2014 at 11:24:51PM +0200, Markus Teich wrote:
> 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|'
>

Hi Markus, thank you very much for the tip! I like it, is very simple.

However, it's suffering from the same problem I am having with
grep-notify.

The output of sic is being blocked from showing up, if I send :quit all
the output is printed back and the program exits.

  sic -h irc.freenode.net -n badosu |\
  grep -v '< QUIT (\|< JOIN (\|< PART (\|< NICK (' |\
  sed 's|\([^(]badosu\)|\x7\1|'
Received on Sat Jun 28 2014 - 23:33:48 CEST

This archive was generated by hypermail 2.3.0 : Sat Jun 28 2014 - 23:48:03 CEST