[Top][All Lists]

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

Re: Coreutils-gotchas

From: Eric Blake
Subject: Re: Coreutils-gotchas
Date: Mon, 7 Dec 2015 09:57:59 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 11/28/2015 11:34 PM, Assaf Gordon wrote:
> On 11/29/2015 12:16 AM, Pádraig Brady wrote:
>>> I must collate some gotchas like this.
>> Initial list started at:
> Fantastic list!

Another common gotcha (at least it is a frequently-reported non-bug):

When using sort on a particular field, you almost always want '-k1,1',
not '-k1'.  While sorting from field 1 to the end of the line sometimes
works (particularly for -n), it is a trap for the novice who doesn't
realize that -k1,1 is more precise, where the trailing delimiter and
subsequent fields can't affect the results.

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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