coreutils/src/uu/split
Jeffrey Finkelstein 7dc96697c9 split: implement round-robin arg to --number
Implement distributing lines of a file in a round-robin manner to a
specified number of chunks. For example,

    $ (seq 1 10 | split -n r/3) && head -v xa[abc]
    ==> xaa <==
    1
    4
    7
    10

    ==> xab <==
    2
    5
    8

    ==> xac <==
    3
    6
    9
2022-10-22 23:15:55 -04:00
..
src split: implement round-robin arg to --number 2022-10-22 23:15:55 -04:00
BENCHMARKING.md split: add BENCHMARKING.md documentation file 2022-02-08 22:58:00 -05:00
Cargo.toml split: update to clap 4 2022-10-13 17:50:40 +02:00
LICENSE Include license text in all published crates 2022-03-05 21:21:46 +01: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.