[PLUG] awk syntax
Rich Shepard
rshepard at appl-ecosys.com
Thu May 24 18:24:25 UTC 2012
On Thu, 24 May 2012, Larry Brigman wrote:
> Inline awk scripts need to be single quoted
True. But this is not a single line script on the command line; it's in a
script fed to awk.
> ... and there needs to be a semi-colon between statements on the same line
> like: awk 'BEGIN{ FS="|";OFS="|";} .....' file
OK. A semi-colon between the FS and OFS statements fixed the error.
Thanks, Larry,
Rich
More information about the PLUG
mailing list