[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6395: How sort based on a list of fields?
From: |
Eric Blake |
Subject: |
bug#6395: How sort based on a list of fields? |
Date: |
Thu, 10 Jun 2010 11:45:16 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Mnenhy/0.8.2 Thunderbird/3.0.4 |
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 address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature