bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: you are not going to be able to sort this by the fifth field.


From: Eric Blake
Subject: Re: you are not going to be able to sort this by the fifth field.
Date: Thu, 04 Mar 2010 21:26:22 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

According to address@hidden on 3/4/2010 7:11 PM:
> Thanks. I see I neglected the -b.
> On the info page in the `--field-separator=SEPARATOR' discussion, do
> mention the effects of -b on ' foo' etc.
> PB> $ LC_CTYPE=C sort --debug -sb -k5,5 < taichung_county_atm.htm
> (Use .txt, not .htms in examples.)
> Anyway, your --debug stuff would be clearer with just pipes added
> inline:
> $ echo 'a   b c'|sort --debug=show_fields
> a|   b| c
> or something like that.

Except that you can specify overlapping keys.  I find the idea of multiple
separate lines of underscores, one per key, much easier to follow in
understanding how each line is broken down into fields and keys, than I
would in trying to parse inline notations that change the line's contents.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]