bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU Awk 3.1.5 proglems with OFS


From: John Cowan
Subject: Re: GNU Awk 3.1.5 proglems with OFS
Date: Fri, 7 Sep 2007 09:19:52 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

ywd scripsit:

> address@hidden Belsk]$ awk 'BEGIN{OFS="|"};{print $0}' plik1

$0 is the input record itself, not the result of joining all the fields in
the input record with OFS.  Indeed, sensible awks will not even split the
record in cases like this, where no reference is made to a numbered field.

-- 
John Cowan  address@hidden  http://ccil.org/~cowan
Any sufficiently-complicated C or Fortran program contains an ad-hoc,
informally-specified bug-ridden slow implementation of half of Common Lisp.
        --Greenspun's Tenth Rule of Programming (rules 1-9 are unknown)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]