coreutils
[Top][All Lists]
Advanced

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

Re: split: Allow splitting by line count (instead of byte size)


From: John
Subject: Re: split: Allow splitting by line count (instead of byte size)
Date: Tue, 12 Jan 2021 12:19:07 -0600 (CST)

* On Monday, January 11, 2021 21:17, "William Bader" <williambader@hotmail.com> 
said:
> I think that split has to be able to read from pipes, so if it reads to the 
> end to
> find the number of lines, it can't back up to do the split.
> If you don't care about the order of the lines, you could use "split
> --number=r/2"

  That's a good point that I didn't consider; I'd still like the feature as 
requested because this isn't always the case for our projects, but for this 
particular one it would have been OK for the lines to be in any order.  I'll 
keep that in mind for next time, thanks!




reply via email to

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