split command for MoonX.
moonx cli/split -l 100 input.txt part-
moonx cli/split -b 64K -d --additional-suffix=.bin input.bin chunk-
moonx cli/split -n l/3 input.txt part-
moonx cli/split -n r/2/3 input.txt
moonx cli/split -C 4K input.txt part-| Form | Distribution |
|---|---|
| N | Divide bytes into N pieces; the first size%N pieces receive one extra byte. |
| K/N | Write only the original Kth byte partition to stdout. |
| l/N | Keep complete records in the partition containing their starting byte. |
| l/K/N | Write only records assigned to the original Kth partition. |
| r/N | Assign complete records cyclically to N pieces. |
| r/K/N | Write only the Kth round-robin stream to stdout. |