Debian Codegraph @

upstream/debian-trixie/man1/csplit.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1.
2 .TH CSPLIT "1" "June 2025" "GNU coreutils 9.7" "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 \fB\-b\fR, \fB\-\-suffix\-format\fR=\fI\,FORMAT\/\fR
19 use sprintf FORMAT instead of %02d
20 .TP
21 \fB\-f\fR, \fB\-\-prefix\fR=\fI\,PREFIX\/\fR
22 use PREFIX instead of 'xx'
23 .TP
24 \fB\-k\fR, \fB\-\-keep\-files\fR
25 do not remove output files on errors
26 .TP
27 \fB\-\-suppress\-matched\fR
28 suppress the lines matching PATTERN
29 .TP
30 \fB\-n\fR, \fB\-\-digits\fR=\fI\,DIGITS\/\fR
31 use specified number of digits instead of 2
32 .TP
33 \fB\-s\fR, \fB\-\-quiet\fR, \fB\-\-silent\fR
34 do not print counts of output file sizes
35 .TP
36 \fB\-z\fR, \fB\-\-elide\-empty\-files\fR
37 suppress empty output files
38 .TP
39 \fB\-\-help\fR
40 display this help and exit
41 .TP
42 \fB\-\-version\fR
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 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
66 .br
67 Report any translation bugs to <https://translationproject.org/team/>
68 .SH "SEE ALSO"
69 Full documentation <https://www.gnu.org/software/coreutils/csplit>
70 .br
71 or available locally via: info \(aq(coreutils) csplit invocation\(aq
72 .PP
73 .br
74 Packaged by Debian (9.7\-3)
75 .br
76 Copyright \(co 2025 Free Software Foundation, Inc.
77 .br
78 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
79 .br
80 This is free software: you are free to change and redistribute it.
81 .br
82 There is NO WARRANTY, to the extent permitted by law.