GNU bug report logs - #12307
cut bug

Previous Next

Package: coreutils;

Reported by: Steve Roe <sydbarrett927 <at> gmail.com>

Date: Wed, 29 Aug 2012 16:19:02 UTC

Severity: normal

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12307 in the body.
You can then email your comments to 12307 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#12307; Package coreutils. (Wed, 29 Aug 2012 16:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Steve Roe <sydbarrett927 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Wed, 29 Aug 2012 16:19:02 GMT) Full text and rfc822 format available.

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

From: Steve Roe <sydbarrett927 <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: cut bug
Date: Wed, 29 Aug 2012 11:53:01 -0400
[Message part 1 (text/plain, inline)]
I found a cut bug while I was running on the terminal. I can cut one field
and it will display as normal. However when I try and cut multiple fields,
it does not. For example this is what I type - "-d: -f2, f3 inputfile.dat".
The following message displays - "cut: fields and positions are numbered
from 1". Please advise. Thanks!

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

Reply sent to Eric Blake <eblake <at> redhat.com>:
You have taken responsibility. (Wed, 29 Aug 2012 16:54:02 GMT) Full text and rfc822 format available.

Notification sent to Steve Roe <sydbarrett927 <at> gmail.com>:
bug acknowledged by developer. (Wed, 29 Aug 2012 16:54:02 GMT) Full text and rfc822 format available.

Message #10 received at 12307-done <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Steve Roe <sydbarrett927 <at> gmail.com>
Cc: 12307-done <at> debbugs.gnu.org
Subject: Re: bug#12307: cut bug
Date: Wed, 29 Aug 2012 09:52:12 -0700
[Message part 1 (text/plain, inline)]
tag 12307 notabug
thanks

On 08/29/2012 08:53 AM, Steve Roe wrote:
> I found a cut bug while I was running on the terminal. I can cut one field
> and it will display as normal. However when I try and cut multiple fields,
> it does not. For example this is what I type - "-d: -f2, f3 inputfile.dat".
> The following message displays - "cut: fields and positions are numbered
> from 1". Please advise. Thanks!

Your issue is learning the right syntax for calling cut, and not a bug
in cut itself.  Try using:

cut -d: -f2,3 inputfile.dat

(notice that specifying multiple fields requires compressing all of the
ranges into a single argument, with no space separation).

For now I'm closing this bug, although you can continue to reply to it
for further discussion.  Perhaps that means we should reopen this report
if someone is willing to write a documentation patch.

-- 
Eric Blake   eblake <at> redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 27 Sep 2012 11:24:03 GMT) Full text and rfc822 format available.

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

Previous Next


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