| 1 |
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1. |
| 2 |
.TH CSPLIT "1" "February 2026" "GNU coreutils 9.10" "User Commands" |
| 3 |
.SH NAME |
| 4 |
csplit \- split a file into sections determined by context lines |
| 5 |
.SH SYNOPSIS |
| 6 |
.B csplit |
| 7 |
[\fI\,OPTION\/\fR]... \fI\,FILE PATTERN\/\fR... |
| 8 |
.SH DESCRIPTION |
| 9 |
.\" Add any additional description here |
| 10 |
.PP |
| 11 |
Output pieces of FILE separated by PATTERN(s) to files 'xx00', 'xx01', ..., |
| 12 |
and output byte counts of each piece to standard output. |
| 13 |
.PP |
| 14 |
Read standard input if FILE is \- |
| 15 |
.PP |
| 16 |
Mandatory arguments to long options are mandatory for short options too. |
| 17 |
.TP |
| 18 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#csplit-b'\fB\-b, \-\-suffix\-format=\,FORMAT\fP\X'tty: link'\/\fR |
| 19 |
use sprintf FORMAT instead of %02d |
| 20 |
.TP |
| 21 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#csplit-f'\fB\-f, \-\-prefix=\,PREFIX\fP\X'tty: link'\/\fR |
| 22 |
use PREFIX instead of 'xx' |
| 23 |
.TP |
| 24 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#csplit-k'\fB\-k, \-\-keep\-files\fP\X'tty: link' |
| 25 |
do not remove output files on errors |
| 26 |
.TP |
| 27 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#csplit--suppress-matched'\fB\-\-suppress\-matched\fP\X'tty: link' |
| 28 |
suppress the lines matching PATTERN |
| 29 |
.TP |
| 30 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#csplit-n'\fB\-n, \-\-digits=\,DIGITS\fP\X'tty: link'\/\fR |
| 31 |
use specified number of digits instead of 2 |
| 32 |
.TP |
| 33 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#csplit-s'\fB\-s, \-\-quiet, \-\-silent\fP\X'tty: link' |
| 34 |
do not print counts of output file sizes |
| 35 |
.TP |
| 36 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#csplit-z'\fB\-z, \-\-elide\-empty\-files\fP\X'tty: link' |
| 37 |
suppress empty output files |
| 38 |
.TP |
| 39 |
\X'tty: link https://www.gnu.org/software/coreutils/csplit#csplit--help'\fB\-\-help\fP\X'tty: link' |
| 40 |
display this help and exit |
| 41 |
.TP |
| 42 |
\X'tty: link https://www.gnu.org/software/coreutils/csplit#csplit--version'\fB\-\-version\fP\X'tty: link' |
| 43 |
output version information and exit |
| 44 |
.SS "Each PATTERN may be:" |
| 45 |
.TP |
| 46 |
INTEGER |
| 47 |
copy up to but not including specified line number |
| 48 |
.TP |
| 49 |
/REGEXP/[OFFSET] |
| 50 |
copy up to but not including a matching line |
| 51 |
.TP |
| 52 |
%REGEXP%[OFFSET] |
| 53 |
skip to, but not including a matching line |
| 54 |
.TP |
| 55 |
{INTEGER} |
| 56 |
repeat the previous pattern specified number of times |
| 57 |
.TP |
| 58 |
{*} |
| 59 |
repeat the previous pattern as many times as possible |
| 60 |
.PP |
| 61 |
A line OFFSET is an integer optionally preceded by '+' or '\-' |
| 62 |
.SH AUTHOR |
| 63 |
Written by Stuart Kemp and David MacKenzie. |
| 64 |
.SH "REPORTING BUGS" |
| 65 |
Report bugs to: bug\[email protected] |
| 66 |
.br |
| 67 |
GNU coreutils home page: <https://www.gnu.org/software/coreutils/> |
| 68 |
.br |
| 69 |
General help using GNU software: <https://www.gnu.org/gethelp/> |
| 70 |
.br |
| 71 |
Report any translation bugs to <https://translationproject.org/team/> |
| 72 |
.SH "SEE ALSO" |
| 73 |
Full documentation <https://www.gnu.org/software/coreutils/csplit> |
| 74 |
.br |
| 75 |
or available locally via: info \(aq(coreutils) csplit invocation\(aq |
| 76 |
.PP |
| 77 |
.br |
| 78 |
Packaged by Debian (9.10\-1) |
| 79 |
.br |
| 80 |
Copyright \(co 2026 Free Software Foundation, Inc. |
| 81 |
.br |
| 82 |
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. |
| 83 |
.br |
| 84 |
This is free software: you are free to change and redistribute it. |
| 85 |
.br |
| 86 |
There is NO WARRANTY, to the extent permitted by law. |