[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26519: Documentation for cut --fields=field-list giving faulty info
From: |
Bo Rydberg |
Subject: |
bug#26519: Documentation for cut --fields=field-list giving faulty info on awk |
Date: |
Fri, 14 Apr 2017 16:24:47 +0000 |
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.
- bug#26519: Documentation for cut --fields=field-list giving faulty info on awk,
Bo Rydberg <=