Date: 28 Oct 2010 19:40:12 -0000 From: John Levine <johnl@iecc.com> To: freebsd-questions@freebsd.org Cc: perrin@apotheon.com Subject: Re: [OT] writing filters in sh Message-ID: <20101028194012.8117.qmail@joyce.lan> In-Reply-To: <20101028160110.GA71713@guilt.hydra>
next in thread | previous in thread | raw e-mail | index | archive | help
>I was hoping for a generalized, simple idiom for this, rather than >needing to implement it myself, for demonstration purposes ---------------------------------------- #!/bin/sh cat "$@" | while read x do echo "I saw $x" done ---------------------------------------- Sheesh. R's, John
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101028194012.8117.qmail>