GNU bug report logs - #26519
Documentation for cut --fields=field-list giving faulty info on awk

Previous Next

Package: coreutils;

Reported by: Bo Rydberg <bolry <at> hotmail.com>

Date: Sat, 15 Apr 2017 16:25:02 UTC

Severity: minor

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bo Rydberg <bolry <at> hotmail.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: Documentation for cut --fields=field-list giving faulty info on awk
Date: Fri, 14 Apr 2017 16:24:47 +0000
[Message part 1 (text/plain, inline)]
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.

[Message part 2 (text/html, inline)]

This bug report was last modified 8 years and 39 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.