1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-15 17:51:07 +00:00
uutils-coreutils/src/uu/split
Jeffrey Finkelstein ee36dea1a9 split: implement outputting kth chunk of file
Implement `-n l/k/N` option, where the `k`th chunk of the input file
is written to stdout. For example,

    $ seq -w 0 99 > f; split -n l/3/10 f
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
2022-03-05 10:27:51 +01:00
..
src split: implement outputting kth chunk of file 2022-03-05 10:27:51 +01:00
BENCHMARKING.md split: add BENCHMARKING.md documentation file 2022-02-08 22:58:00 -05:00
Cargo.toml split: add ByteChunkWriter and LineChunkWriter 2022-02-08 22:53:56 -05:00
README.md change ~ make all sub-crates independent 2020-05-29 22:59:40 -05:00

Rudimentary "split" Implementation

Missing Features

Flags

  • --verbose - created file printing is implemented, don't know if there is anything else

Possible Optimizations

  • Use slice ([u8]) directly as the control.current_line.