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       -n, --digits=DIGITS
28              use specified number of digits instead of 2
29
30       -s, --quiet, --silent
31              do not print counts of output file sizes
32
33       -z, --elide-empty-files
34              remove empty output files
35
36       --help display this help and exit
37
38       --version
39              output version information and exit
40
41       Read standard input if FILE is -.  Each PATTERN may be:
42
43       INTEGER
44              copy up to but not including specified line number
45
46       /REGEXP/[OFFSET]
47              copy up to but not including a matching line
48
49       %REGEXP%[OFFSET]
50              skip to, but not including a matching line
51
52       {INTEGER}
53              repeat the previous pattern specified number of times
54
55       {*}    repeat the previous pattern as many times as possible
56
57       A line OFFSET is a required `+' or `-' followed by a positive integer.
58

AUTHOR

60       Written by Stuart Kemp and David MacKenzie.
61

REPORTING BUGS

63       Report bugs to <bug-coreutils@gnu.org>.
64
66       Copyright © 2007 Free Software Foundation, Inc.
67       This  is  free  software.   You may redistribute copies of it under the
68       terms      of      the      GNU      General       Public       License
69       <http://www.gnu.org/licenses/gpl.html>.   There  is NO WARRANTY, to the
70       extent permitted by law.
71

SEE ALSO

73       The full documentation for csplit is maintained as  a  Texinfo  manual.
74       If  the  info  and csplit programs are properly installed at your site,
75       the command
76
77              info csplit
78
79       should give you access to the complete manual.
80
81
82
83GNU coreutils 6.9                 March 2008                         CSPLIT(1)
Impressum