[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] getline awk
From: |
Gérard ROBIN |
Subject: |
Re: [Help-bash] getline awk |
Date: |
Sun, 20 Jan 2019 12:14:51 +0100 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Sun, Jan 20, 2019 at 11:24:20AM +0100, Davide Brini wrote:
> Date: Sun, 20 Jan 2019 11:24:20 +0100
> From: Davide Brini <address@hidden>
> To: address@hidden
> Subject: Re: [Help-bash] getline awk
> The first getline reads the first line, whose first field is
> "line1-field-1". The second getline reads the second line of the file, an
> empty line (which you do nothing with). The third getline reads the third
> line of the file, whose second field is "line2-field-2".
OK awk doesn't skip the empty lines. I should have thought about it
sorry :(
Thanks
--
Gerard