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       Mandatory arguments to long options are  mandatory  for  short  options
16       too.
17
18       -b, --suffix-format=FORMAT
19              use sprintf FORMAT instead of %02d
20
21       -f, --prefix=PREFIX
22              use PREFIX instead of 'xx'
23
24       -k, --keep-files
25              do not remove output files on errors
26
27       -m, --suppress-matched
28              suppress the lines matching PATTERN
29
30       -n, --digits=DIGITS
31              use specified number of digits instead of 2
32
33       -s, --quiet, --silent
34              do not print counts of output file sizes
35
36       -z, --elide-empty-files
37              remove empty output files
38
39       --help display this help and exit
40
41       --version
42              output version information and exit
43
44       Read standard input if FILE is -.  Each PATTERN may be:
45
46       INTEGER
47              copy up to but not including specified line number
48
49       /REGEXP/[OFFSET]
50              copy up to but not including a matching line
51
52       %REGEXP%[OFFSET]
53              skip to, but not including a matching line
54
55       {INTEGER}
56              repeat the previous pattern specified number of times
57
58       {*}    repeat the previous pattern as many times as possible
59
60       A line OFFSET is a required '+' or '-' followed by a positive integer.
61
62       GNU  coreutils  online  help:  <http://www.gnu.org/software/coreutils/>
63       Report csplit translation bugs to <http://translationproject.org/team/>
64

AUTHOR

66       Written by Stuart Kemp and David MacKenzie.
67
69       Copyright © 2013 Free Software Foundation, Inc.   License  GPLv3+:  GNU
70       GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
71       This  is  free  software:  you  are free to change and redistribute it.
72       There is NO WARRANTY, to the extent permitted by law.
73

SEE ALSO

75       The full documentation for csplit is maintained as  a  Texinfo  manual.
76       If  the  info  and csplit programs are properly installed at your site,
77       the command
78
79              info coreutils 'csplit invocation'
80
81       should give you access to the complete manual.
82
83
84
85GNU coreutils 8.22               October 2018                        CSPLIT(1)
Impressum