CSPLIT(1) General Commands Manual CSPLIT(1)

# [NAME](#NAME)

csplit - Split a file into sections determined by context lines

# [SYNOPSIS](#SYNOPSIS)

**csplit** \[OPTION]... FILE PATTERN...

# [DESCRIPTION](#DESCRIPTION)

Split a file into sections determined by context lines

# [OPTIONS](#OPTIONS)

[**-b**, **--suffix-format** *&lt;FORMAT&gt;*](#b)

use sprintf FORMAT instead of %02d

[**-f**, **--prefix** *&lt;PREFIX&gt;*](#f)

use PREFIX instead of 'xx'

[**-k**, **--keep-files**](#k)

do not remove output files on errors

[**--suppress-matched**](#suppress)

suppress the lines matching PATTERN

[**-n**, **--digits** *&lt;DIGITS&gt;*](#n)

use specified number of digits instead of 2

[**-q**, **--quiet**](#q)

do not print counts of output file sizes

[**-z**, **--elide-empty-files**](#z)

remove empty output files

[**-h**, **--help**](#h)

Print help

[**-V**, **--version**](#V)

Print version

# [EXTRA](#EXTRA)

Output pieces of FILE separated by PATTERN(s) to files 'xx00', 'xx01', ..., and output byte counts of each piece to standard output.

# [VERSION](#VERSION)

v(uutils coreutils) 0.12.0

2026-09-17

---

Document: csplit(1) from uutils 0.12.0-r0 (Chainguard OS)
Source: https://github.com/uutils/coreutils
