Scroll to navigation

csplit(1) General Commands Manual csplit(1)

NAME

csplit - Split a file into sections determined by context lines

SYNOPSIS

csplit [-b|--suffix-format] [-f|--prefix] [-k|--keep-files] [--suppress-matched] [-n|--digits] [-s|--quiet] [-z|--elide-empty-files] [-h|--help] [-V|--version] <file> <pattern>

DESCRIPTION

Split a file into sections determined by context lines

OPTIONS

use sprintf FORMAT instead of %02d
use PREFIX instead of 'xx'
do not remove output files on errors
suppress the lines matching PATTERN
use specified number of digits instead of 2
do not print counts of output file sizes
remove empty output files
Print help
Print version

EXTRA

Output pieces of FILE separated by PATTERN(s) to files 'xx00', 'xx01', ..., and output byte counts of each piece to standard output.

VERSION

v0.0.26

csplit 0.0.26