Subject: Re: split into n chunks
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-userlevel
Date: 05/29/2007 16:24:11
In article <20070528190414.GE12871@netmeister.org>,
Jan Schaumann  <jschauma@netmeister.org> wrote:
>-=-=-=-=-=-
>-=-=-=-=-=-
>
>Hello,
>
>I've had the need to split a file into N chunks.  Now I could do the
>math myself by looking at the file size and the specifying "-b" with the
>appropriate number, but I figured it might be useful to let split(1) do
>this for me.
>
>The attached diff adds the "-n chunk_count" flag to split(1).
>
>Does that look ok to commit?
>
>-Jan

Look on how I did the numeric parsing for size_t from strtol in the latest
fmt.c. Otherwise it looks fine.

christos