sort a file.
- From: "Mr. X." <no_spam_please@xxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Mar 2007 02:35:18 +0200
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 :)
.
- Follow-Ups:
- Re: sort a file.
- From: Bit Twister
- Re: sort a file.
- Prev by Date: Re: Process Synchronization using Pipes
- Next by Date: Re: sort a file.
- Previous by thread: STREAMS pipes - ioctl I_SENDFD
- Next by thread: Re: sort a file.
- Index(es):
Relevant Pages
|