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 csplit bugs to bug-coreutils@gnu.org
64       GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
65       General help using GNU software: <http://www.gnu.org/gethelp/>
66       Report csplit translation bugs to <http://translationproject.org/team/>
67
69       Copyright  ©  2010  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.5                November 2010                       CSPLIT(1)
Impressum