Subject: Re: split into n chunks
To: None <>
From: Christos Zoulas <>
List: tech-userlevel
Date: 05/29/2007 16:24:11
In article <>,
Jan Schaumann  <> wrote:
>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?

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