Hello AWK users,
Is it possible to send an AWK selected output through a filter and then
reading the output of that filter back into an internal variable (array)
without using an intermediate temp file?
Basically what I want to do is something like
/TAG/ { print $1 | sort | getline Array[count++] }
but apparently you can’t use “double pipes”.
Does anybody have any suggestion on how to achieve this?
Thanks in advance,
regards,
rick
FWIMC,
OK, I solved this (sort of) by porting GAWK 3.1.0 which has a builtin
asort() function.
thanks anyway,
rick
Rick Lake <rwlake@spamfree.domain.invalid> wrote:
Hello AWK users,
Is it possible to send an AWK selected output through a filter and then
reading the output of that filter back into an internal variable (array)
without using an intermediate temp file?
Basically what I want to do is something like
/TAG/ { print $1 | sort | getline Array[count++] }
but apparently you can’t use “double pipes”.
Does anybody have any suggestion on how to achieve this?
Thanks in advance,
regards,
rick