from localhost (localhost [127.0.0.1])
	by phobos.labs.netnoteinc.com (Postfix) with ESMTP id C65E3440C9
	for <jm@localhost>; Mon, 22 Jul 2002 14:49:53 -0400 (EDT)
from dogma.slashnull.org [212.17.35.15]
	by localhost with IMAP (fetchmail-5.9.0)
	for jm@localhost (single-drop); Mon, 22 Jul 2002 19:49:53 +0100 (IST)
from webnote.net (mail.webnote.net [193.120.211.219]) by
    dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g6MHQX403517 for
    <jm-ilug@jmason.org>; Mon, 22 Jul 2002 18:26:33 +0100
from lugh.tuatha.org (root@lugh.tuatha.org [194.125.145.45]) by
    webnote.net (8.9.3/8.9.3) with ESMTP id KAA22935 for <jm-ilug@jmason.org>;
    Sat, 20 Jul 2002 10:50:41 +0100
from lugh (root@localhost [127.0.0.1]) by lugh.tuatha.org
    (8.9.3/8.9.3) with ESMTP id KAA28089; Sat, 20 Jul 2002 10:48:13 +0100
from holly.csn.ul.ie (holly.csn.ul.ie [136.201.105.4]) by
    lugh.tuatha.org (8.9.3/8.9.3) with ESMTP id KAA28062 for <ilug@linux.ie>;
    Sat, 20 Jul 2002 10:48:07 +0100
from skynet.csn.ul.ie (skynet [136.201.105.2]) by
    holly.csn.ul.ie (Postfix) with ESMTP id 3AB4B2B303 for <ilug@linux.ie>;
    Sat, 20 Jul 2002 10:47:37 +0100 (IST)
by skynet.csn.ul.ie (Postfix, from userid 2196) id 183B7E958;
    Sat, 20 Jul 2002 10:47:37 +0100 (IST)
[ILUG] vanquishing the daemons of shell scripting
From ilug-admin@linux.ie  Mon Jul 22 19:49:55 2002

Last night, i was involved in an epic struggle to write a shell
script to do a certain task. The battle raged for hours, but, i'm glad
to inform you, i emerged victorious. The problem was as follows:
It's very easy to get one program to act on the output of a second
program: cmd1 | cmd2. But, what if you want cmd1 to act on the output of
cmd2 as well? Hmm. Eventually, I came up with this solution:
and bingo, all was well with the world. Now, I have (and had) a sneaking
suspcion that it might be possible to do this without using a fifo, and
but that doesn't work in that form, and i couldn't work out an
incantation that would. Anyone got any suggestions? Anyway, victory is
mine, and i is happy person once again. In case you were wondering, the
aim of all of this was to write a shell script that could check for new