[PLUG] AWK script syntax error

Rich Shepard rshepard at appl-ecosys.com
Thu Mar 3 22:21:17 UTC 2011


On Thu, 3 Mar 2011, Daniel Hedlund wrote:

> Rich's awk script only checks the second column for 0.000.

Daniel,

   Yes. If the second column has zeros, so would the third column.

> ...if he wants to continue using awk, I believe the following will
> work (the "print NR" was removed):
>
> BEGIN { FS="|" }
>  {if ($2 != 0.000000)
>    print $1"|"$2"|"$3}
> END {}

   Yeah. The 'print NR' wasn't working anyway.

Thanks,

Rich



More information about the PLUG mailing list