[PLUG] AWK script syntax error
Rich Shepard
rshepard at appl-ecosys.com
Thu Mar 3 21:52:43 UTC 2011
I wrote this little script:
BEGIN { FS="|" }
{if ($2 != 0.000000)
print $1"|"$2"|"$3}
END {print NR}
to remove lines like this:
29608|0.000000|0.000000
from a file with 110K lines. While I thought it was working properly it
leaves these lines looking like this:
29608||
I've looked in my O'Reilly sed/awk book and don't see my error. What have
I done incorrectly?
Rich
More information about the PLUG
mailing list