[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26519: Documentation for cut --fields=field-list giving faulty info
From: |
Pádraig Brady |
Subject: |
bug#26519: Documentation for cut --fields=field-list giving faulty info on awk |
Date: |
Sun, 16 Apr 2017 19:12:07 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 14/04/17 09:24, Bo Rydberg wrote:
> As seen at
> https://www.gnu.org/software/coreutils/manual/html_node/cut-invocation.html,
> the section for ‘-f field-list’
> ‘--fields=field-list’ hints at some examples of using awk. The second example
> is wrong. it states:
> awk '{print $NF-1}' # print the penultimate field
> when it should be
> awk '{print $(NF-1)}' # print the penultimate field
> i.e., parenthesis missing.
Indeed. I guess that was tested with echo 1 2 3 :)
Committed in your name at:
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=v8.27-22-g8d34b45
thanks,
Pádraig