split
Split input into multiple output files by line count or byte size with dry-run support and overwrite protection. Use to partition large datasets.
Instructions
Split input into chunked output files by line count or byte size with dry-run and overwrite protection. Destructive: creates multiple output files. Default splits at 1000 lines per chunk. Use --dry_run to preview. Returns JSON with output file list and record counts. Use to partition large datasets. Not for content-based splitting — use 'csplit' to split at regex match points. See also 'csplit'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allow_overwrite | No | Allow replacing existing split outputs. | |
| bytes | No | Bytes per output file. | |
| dry_run | No | Report split outputs without writing files. | |
| lines | No | Lines per output file. Defaults to 1000. | |
| numeric_suffixes | No | Use numeric suffixes instead of aa/ab. | |
| output_dir | No | Directory for split outputs. | . |
| path | No | File to split, or '-' for stdin. Defaults to stdin. | - |
| prefix | No | Output file prefix. | x |
| suffix_length | No | Suffix length. |