GNU bug report logs - #6395
How sort based on a list of fields?

Previous Next

Package: coreutils;

Reported by: Peng Yu <pengyu.ut <at> gmail.com>

Date: Thu, 10 Jun 2010 17:28:02 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.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 6395 in the body.
You can then email your comments to 6395 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 owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#6395; Package coreutils. (Thu, 10 Jun 2010 17:28:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peng Yu <pengyu.ut <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Thu, 10 Jun 2010 17:28:02 GMT) Full text and rfc822 format available.

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

From: Peng Yu <pengyu.ut <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: How sort based on a list of fields?
Date: Thu, 10 Jun 2010 12:12:07 -0500
Hi,

-k option of sort only allow a range of files. But I would like a list
of fields. For example, field 7, field 3 then field 8. Would you
please let me know how to do it?

-- 
Regards,
Peng




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#6395; Package coreutils. (Thu, 10 Jun 2010 17:46:02 GMT) Full text and rfc822 format available.

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

From: Eric Blake <eblake <at> redhat.com>
To: Peng Yu <pengyu.ut <at> gmail.com>
Cc: 6395 <at> debbugs.gnu.org
Subject: Re: bug#6395: How sort based on a list of fields?
Date: Thu, 10 Jun 2010 11:45:16 -0600
[Message part 1 (text/plain, inline)]
On 06/10/2010 11:12 AM, Peng Yu wrote:
> Hi,
> 
> -k option of sort only allow a range of files. But I would like a list
> of fields. For example, field 7, field 3 then field 8. Would you
> please let me know how to do it?

sort -k7,7 -k3,3 -k8,8

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

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

bug closed, send any further explanations to Peng Yu <pengyu.ut <at> gmail.com> Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Wed, 14 Jul 2010 16:05:02 GMT) Full text and rfc822 format available.

Added tag(s) notabug. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Wed, 14 Jul 2010 16:05:02 GMT) Full text and rfc822 format available.

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

This bug report was last modified 14 years and 315 days ago.

Previous Next


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