encyclopegia.org

Csplit

csplit is a shell command for splitting a file into two or more smaller files determined by context lines. The command is commonly available on Unix and Unix-like operating systems. The command is part of the X/Open Portability Guide since issue 2 of 1987. It was inherited into the first version of POSIX and the Single Unix Specification. It first appeared in PWB UNIX. The version in GNU coreutils was written by Stuart Kemp and David MacKenzie. The command is available for Windows via UnxUtils.

csplit is a shell command for splitting a file into two or more smaller files determined by context lines. The command is commonly available on Unix and Unix-like operating systems. The command is part of the X/Open Portability Guide since issue 2 of 1987. It was inherited into the first version of POSIX and the Single Unix Specification. It first appeared in PWB UNIX. The version in GNU coreutils was written by Stuart Kemp and David MacKenzie. The command is available for Windows via UnxUtils. ==Usage== The command line arguments consist of options, a file path and a list of patterns. Each patterns is a line number or regular expression. The program outputs pieces of the file separated by the patterns into files xx00 , xx01 , etc., and outputs the size of each piece, in bytes, to standard output. ==Comparison to split== The split command also splits a file into pieces, although the pieces are of a fixed size, measured in lines or bytes. ==See also== ==References== ==Further reading== Ellen Siever, Aaron Weber, Stephen Figgins, Robert Love, Arnold Robbins, et al. Linux in a Nutshell, 5th Edition. O'Reilly Media: July 2005. . ==External links==

References

No reference rows published for this article.

Cite this article

MLA

"Csplit." encyclopegia.org, 2026, https://encyclopegia.org/wiki/csplit. Accessed 24 November 2026.

Chicago

"Csplit." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/csplit.

APA

encyclopegia.org. (2026). Csplit. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/csplit

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1336332037 · 0.5 · snapshot enwiki-001336332037

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.