On Tue, Jun 8, 2010 at 10:49 AM, David Engster <d...@randomsample.de> wrote:
> wmiir read /event | awk '/./ { print; fflush() } END { print "" }'

What's the purpose of awk here?  I see the same result both with and
without awk in Arch Linux with awk = GNU Awk 3.1.8.

# i=0; wmiir read /event | while read; do i=`expr $i + 1`; echo $i-$REPLY; done

# i=0; wmiir read /event | awk '/./ { print; fflush() } END { print ""
}' | while read; do i=`expr $i + 1`; echo $i-$REPLY; done

Reply via email to