system enabled community medium v1.0.0

csplit

Split files based on context, can read and write files via sudo or SUID.

📋 Live Preview
csplit {input} 1
📎 input
csplit {input} 1

Sandbox: execFile · Timeout: 30s

Capabilities

system.file.read
system.file.write

Contract

Outputs

process.output

File content output

Side effects: filesystem_write

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory4 MB
Networknone
Disk I/Olow

Examples

Read a file via csplit

csplit /path/to/input-file 1
cat xx01

Write to a file via csplit

echo DATA >/path/to/temp-file
csplit -z -b '%doutput-file' /path/to/temp-file 1

References