Hi,
I am trying to filter a table using the following awk code block.
#+BEGIN_SRC awk :stdin list-example :var fstcol=1 :var seccol=3 :results
output org
BEGIN {
print "|Host|Result"
print "|-"
}
$seccol ~ /[0-9]{1,3}(\.[0-9]\{1,3\}){3}/
{
print "|"$fstcol"|"$seccol
}
#+END_SRC
Th
On Friday, 17 Feb 2017 at 12:33, Roland Everaert wrote:
> Hi,
>
> I am trying to filter a table using the following awk code block.
I think your problem is an error in the awk script; specifically, the
match is outputting all lines because you need to have the { on the same
line as the match expre
I see that more or less 30 seconds after posting to the ML :/
So the problem of this script is solved.
But anyway, why are column headers sent to the script, even with :hlines
and/or :colnames set approriately?
Thanks.
On Fri, Feb 17, 2017 at 2:08 PM, Eric S Fraga wrote:
> On Friday, 17 Feb 2