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

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

Re: FIELDWIDTHS does not work.


From: Aharon Robbins
Subject: Re: FIELDWIDTHS does not work.
Date: Tue, 13 Mar 2001 14:16:30 +0200

> From: "Byron Dai" <address@hidden>
> Subject: FIELDWIDTHS does not work.
> Date: Wed, 7 Mar 2001 17:09:13 +0800
>
> Hi, dear Sirs:
>
>          I'm trying a small sample program of gawk. It run in HP-UX. The
> data file is (gawk.datasample):
>
>      1Swensen, Tim  24
>      1Trinkle, Dan  22
>      0Mitchel, Carl 27
>
>          While the awk script is (gawk.program):
>    BEGIN {FIELDWIDTHS=1 8 1 4 1 2}

This is your problem.  The list must be quoted:

        FIELDWIDTHS = "1 8 4 1 2"

Arnold
--
Aharon (Arnold) Robbins --- Pioneer Consulting Ltd.     address@hidden
P.O. Box 354            Home Phone: +972  8 979-0381    Fax: +1 603 761-6761
Nof Ayalon              Cell Phone: +972 51  297-545    (See www.efax.com)
D.N. Shimshon 99785     Laundry increases exponentially in the
ISRAEL                  number of children. -- Miriam Robbins



reply via email to

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