Manual Page Result
0
Command: split | Section: 1 | Source: UNIX v10 | File: split.1
SPLIT(1) General Commands Manual SPLIT(1)
NAME
split, fsplit - split a file into pieces
SYNOPSIS
split [ option ... ] [ file ]
fsplit [ option ... ] [ file ... ]
DESCRIPTION
Split reads file (standard input by default) and writes it in pieces of
1000 lines per output file. The names of the output files are xaa,
xab, and so on to xzz. The options are
-n Split into n-line pieces.
-e expression
File divisions occur at each line that matches a grep-style reg-
ular expression; see gre(1). Multiple -e options may appear.
If a subexpression of expression is contained in escaped paren-
theses \(...\), the output file name is the portion of the line
which matches the subexpression.
-f stem
Use stem instead of x in output file names.
-s suffix
Append suffix to names identified under -e.
-x Exclude the matched input line from the output file.
-i Ignore case in option -e; force output file names (excluding the
suffix) to lower case.
Fsplit splits a collection of Fortran subprograms in one file into sep-
arate files. The options are
-f
-e
-r Set the file suffix: procedure will go into file (default), or
accordingly. Block data subprograms will go into files named
etc.
-i Force output file names to lower case.
-s Strip off data beyond column 72 together with any resulting
trailing blanks.
SEE ALSO
sed(1), awk(1) grep in gre(1)
SPLIT(1)