1CSPLIT(1)                        User Commands                       CSPLIT(1)
2
3
4

NAME

6       csplit - split a file into sections determined by context lines
7

SYNOPSIS

9       csplit [OPTION]... FILE PATTERN...
10

DESCRIPTION

12       Output  pieces of FILE separated by PATTERN(s) to files 'xx00', 'xx01',
13       ..., and output byte counts of each piece to standard output.
14
15       Read standard input if FILE is -
16
17       Mandatory arguments to long options are  mandatory  for  short  options
18       too.
19
20       -b, --suffix-format=FORMAT
21              use sprintf FORMAT instead of %02d
22
23       -f, --prefix=PREFIX
24              use PREFIX instead of 'xx'
25
26       -k, --keep-files
27              do not remove output files on errors
28
29       --suppress-matched
30              suppress the lines matching PATTERN
31
32       -n, --digits=DIGITS
33              use specified number of digits instead of 2
34
35       -s, --quiet, --silent
36              do not print counts of output file sizes
37
38       -z, --elide-empty-files
39              remove empty output files
40
41       --help display this help and exit
42
43       --version
44              output version information and exit
45
46   Each PATTERN may be:
47       INTEGER
48              copy up to but not including specified line number
49
50       /REGEXP/[OFFSET]
51              copy up to but not including a matching line
52
53       %REGEXP%[OFFSET]
54              skip to, but not including a matching line
55
56       {INTEGER}
57              repeat the previous pattern specified number of times
58
59       {*}    repeat the previous pattern as many times as possible
60
61       A line OFFSET is an integer optionally preceded by '+' or '-'
62

AUTHOR

64       Written by Stuart Kemp and David MacKenzie.
65

REPORTING BUGS

67       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
68       Report any translation bugs to <https://translationproject.org/team/>
69
71       Copyright  ©  2022  Free Software Foundation, Inc.  License GPLv3+: GNU
72       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
73       This is free software: you are free  to  change  and  redistribute  it.
74       There is NO WARRANTY, to the extent permitted by law.
75

SEE ALSO

77       Full documentation <https://www.gnu.org/software/coreutils/csplit>
78       or available locally via: info '(coreutils) csplit invocation'
79
80
81
82GNU coreutils 9.1                  May 2023                          CSPLIT(1)
Impressum