GNU bug report logs - #14224
Feature request for the `cut`: record delimiter

Previous Next

Package: coreutils;

Reported by: George Brink <siberianowl <at> gmail.com>

Date: Wed, 17 Apr 2013 22:40:02 UTC

Severity: wishlist

Full log


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

From: George Brink <siberianowl <at> gmail.com>
To: Pádraig Brady <P <at> draigbrady.com>
Cc: 14224 <at> debbugs.gnu.org
Subject: Re: bug#14224: Feature request for the `cut`: record delimiter
Date: Thu, 18 Apr 2013 13:12:01 -0400
[Message part 1 (text/plain, inline)]
On Thu, Apr 18, 2013 at 12:18 PM, Pádraig Brady <P <at> draigbrady.com> wrote:

>
> awk is often suggested too as an alternative to cut.
>
No, I looked at awk, but it does not have a convenient way to specify lists
of printed fields.
awk -e "BEGIN{FS="☺"; RS="☻"; OFS=FS; ORS=RS;}; {print $1,$2,$3,$15,$16,$17
??? ) }
You got the picture...
It is possible to repeat a cut in awk (and documentation for awk does show
how), but this would be a creation of an external application, not a
one-liner with a tool from the box.
[Message part 2 (text/html, inline)]

This bug report was last modified 12 years and 143 days ago.

Previous Next


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