Re: Awk, filtering match through external command
On Sat, 10 Nov 2012 00:36:48 -0500, John L. Cunningham wrote:
> Well...
>
> head /etc/group |\
> awk '{"echo " $0 " | cut -d: -f1" | getline result; print result}'
>
> ...seems to work.
Great. Thanks.
> But it is also very silly.
Again, as I said, this is only
*for the sake of illustration of filtering through external command*.
I didn't want to complicate/distract the discussion on how to match a
piece of segment on a complicated XML string then beautify it via
external command tidy, then do further processing..., all within awk,
make sense now?
Thanks everyone!
Reply to: