[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU Parallel 20120411 alpha released
From: |
Thomas Sattler |
Subject: |
Re: GNU Parallel 20120411 alpha released |
Date: |
Wed, 11 Apr 2012 10:24:03 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120312 Thunderbird/11.0 |
Hi there ...
swap_activity" is identical to v20120322, so it's still broken.
Is there anything I can do to see my awk replacement in the
next stable release?
Current code:
vmstat 1 2 2>/dev/null | tail -n1 | awk '{print $7*$8}' ||
vm_stat 1 | head -n 3 | tail -n1 | awk '{print $9*$10}'
Working code:
{ vmstat 1 2> /dev/null || vm_stat 1; } | awk '
NR!=4{next}
NF==16{print $7*$8}
NF==11{print $10*$11}
{exit}
'
Thomas