On Sat, Apr 18, 2009 at 2:52 PM, Hugh McIntyre <li...@mcintyreweb.com> wrote: > Aubrey Li wrote: >> >> Thanks for your reply, Doug. >> The 2 sec delay is the simulation of one app behavior. >> So for this case, is there a way to get the real time sed output ? > > You can install the expect package, and then use "unbuffer": > > unbuffer ./test | unbuffer sed '/^$/d' > file > > See: > > http://expect.nist.gov/ > http://expect.nist.gov/example/unbuffer.man.html > > Hugh. >
It works! Many thanks. -Aubrey _______________________________________________ tools-discuss mailing list tools-discuss@opensolaris.org