All apps/split

split

split

Split a file into pieces.

Runs as split|macOS, Linux, Windows

Command form

ai-draft · 2 tasks · 7 fields

Split a file by lines, bytes or pattern. Reads standard input when no file is given. Use only one of lines, bytes or pattern.

Opens the form; the finished command lands at your prompt, unrun
otty gui split
Split fileExample values, fixed in this page — nothing here reaches a terminal
Basic
File to split*
file
Output prefix
string
Lines per file*
integer
Numeric suffixes
-d
Suffix length
integer
TasksEach one presets the form for one job
Split by lines
fileprefixlinesnumericsuffix_len
Split by size
fileprefixbytesnumericsuffix_len
ParametersOnly these flags are editable in the form
File to split
path · positional 0
Output prefix
Default is x.
string · positional 1
x
Lines per file
integer
-l
Bytes per file
A number with optional k, m or g suffix.
string
-b
Split at pattern
Extended regular expression; the matching line starts the next file.
string
-p
Numeric suffixes
boolean
-d
Suffix length
integer
-a
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed split against its version. A form that does not match your version is not offered.