mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
split: implement --line-bytes option
Implement the `--line-bytes` option to `split`. In this mode, the program tries to write as many lines of the input as possible to each chunk of output without exceeding a specified byte limit. The new `LineBytesChunkWriter` struct represents this functionality.
This commit is contained in:
parent
2e8945ba7f
commit
77d92883c7
3 changed files with 218 additions and 3 deletions
5
tests/fixtures/split/letters.txt
vendored
Normal file
5
tests/fixtures/split/letters.txt
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
aaaaaaaaa
|
||||
bbbb
|
||||
cccc
|
||||
dd
|
||||
ee
|
Loading…
Add table
Add a link
Reference in a new issue