Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Limits on file numbers in sort -m
- Date: Thu, 29 May 2014 22:17:13 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] Limits on file numbers in sort -m
- References: <CABHGxq7jYkDDLkF8uzzNK8WeU+37t1wgpVhk6VD2HQKyEi7wBw@mail.gmail.com> <CAJMSLH618MfmhL9ufAOfLXxw52i4STpF8dsc_+xe-2GRB3JM8g@mail.gmail.com> <87bnui8sky.fsf@uwakimon.sk.tsukuba.ac.jp> <CABHGxq4NEBMVR8jndiEvcgsGkc_B0f-qcrs2sFjqaAdWH3n9sw@mail.gmail.com> <CAJMSLH6SdSUmvHsjmZBZP-g1graNuPV51vdwLzpPf7ipmz7+zA@mail.gmail.com> <CABHGxq7eCk9Pk1JtNrZuqK_8yv4bt7ftoWwyXqf5P+GKYQH=5w@mail.gmail.com>
Jim Breen writes: > That's pretty much my understanding of it. It would be ultimate silliness to > have read-only input pages end up replicated in swap. I'm not thinking about swap, I'm counting syscalls, which are quite expensive in this kind of application. > In any case the output from "uniq -c" is not what I want, That seems strange to me. When operating on lines of text (by that I mean *not* having a fixed set of fields as you might in CSV, I don't know what you had in mind), it makes a *lot* of sense to prefix rather than suffix a fixed format record, as that can easily be stripped with cut(1) (or handled with the -f option to utilities like uniq and sort. > so since I'd need to reformat it it's easier to use my own > utility. It also give me the option of turning > > this 3 > this 4 > > into > > this 7 > > which I can't do with "uniq -c". You need the counts? In that case I guess you do need the special- purpose tool (although it would be interesting to add it to uniq itself, this is likely a recurring use case).
- Follow-Ups:
- Re: [tlug] Limits on file numbers in sort -m
- From: Bruno Raoult
- References:
- [tlug] Limits on file numbers in sort -m
- From: Jim Breen
- Re: [tlug] Limits on file numbers in sort -m
- From: 黒鉄章
- Re: [tlug] Limits on file numbers in sort -m
- From: Stephen J. Turnbull
- Re: [tlug] Limits on file numbers in sort -m
- From: Jim Breen
- Re: [tlug] Limits on file numbers in sort -m
- From: 黒鉄章
- Re: [tlug] Limits on file numbers in sort -m
- From: Jim Breen
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Limits on file numbers in sort -m
- Next by Date: Re: [tlug] Limits on file numbers in sort -m
- Previous by thread: Re: [tlug] Limits on file numbers in sort -m
- Next by thread: Re: [tlug] Limits on file numbers in sort -m
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links