sort a file.



Hello,
I need a program in unix (C)
that do : getting a file, and sort it (by lines).
It need to use sort command, and many process (by fork ...),
that each of the processes do sort of 100 lines (with temporary file of
pid).
and after all the processes are done - I need to merge the sorts into one
big output file.

I want to sort specific lines,
is it sort -k ?
I need help of that function (sort -k1,20 doesn't work : line 1 to 20).

Need sample code, please.

Thanks :)


.



Relevant Pages

  • Re: updmap input file help
    ... options in Unix have the general form ... But in this sort of situation, ... programmers are usually very unhelpful. ... The Fibonacci series is infinite! ...
    (comp.text.tex)
  • Re: getting cpan configured
    ... Since I've been on unix for maybe 16 months now, I hear quite often--and rightly so--that my difficulties with perl actually belong in a unix group, which this is. ... You know, seebs, I honestly don't know why we can't along, but I find out time and again. ... Sort on: ... sub wanted { ...
    (comp.unix.shell)
  • Re: Good Dungeon Mapping e-Tool?
    ... We don't have any VB of any sort running around. ... but on a multi-core CPU ... don't involve threading, even if they are evidently more complex. ... My last organization, I was doing a *lot* of UNIX stuff (Digital Tru64, ...
    (rec.games.frp.dnd)
  • Re: awk and sorting file
    ... specialized external program (e.g. 'sort' on Unix). ... Are you working in a Unix environment? ... awk or womething different? ... This person is working on Windows. ...
    (comp.lang.awk)
  • unpolitikkorr red errings on elsewhat by old farterz (was: Re: awk and sorting file
    ... There's no sort function builtin in standard awk. ... specialized external program. ... Are you working in a Unix environment? ...
    (comp.lang.awk)