bug-coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] split: --chunks option


From: Pádraig Brady
Subject: Re: [PATCH] split: --chunks option
Date: Sun, 29 Nov 2009 20:56:36 +0000
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Chen Guo wrote:
> Hi Padraig,
> 
>> I do think --number is more general than --chunk as it allows you to specify 
> 
>> only 1 number
>> to get the behaviour described above. Also I notice that FreeBSDs split 
>> recently
>> got a '-n chunk_count' option, so it would be good to maintain compat with 
>> that 
>> if possible.
>>
> I read the FreeBSD source. It's interesting that the Berkeley gave the copy 
> right
> to UC Regents, who just skyrocketed my tuition. Anyhow...
> 
> More on topic, their --number option is actually quite trivial; they get size 
> = st_size/n
> and proceed like it's --bytes=size. In a sense, this chunks option can 
> actually be
> seen as an extension to their --number option.
> 
> I think what I'll end up doing is, implement their --number option, 
> outputting the chunks
> to files. Then extend it to support --number=n/tot, which outputs to stdout.
> 
> Then for delineation by newlines, I'll call it something like 
> --number-lines=n, outputting
> all chunks with split's cwrite to files, and what I have now 
> --number-lines=n/tot, which
> extracts a chunk to stdout.

That all sounds very sensible.
Thanks for your work on this so far.

cheers,
Pádraig.





reply via email to

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