SPLIT(1) 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 regular expression; see gre(1). Multiple -e options may appear. If a subexpression of expression is contained in escaped parentheses \(...\), 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 separate files. The options are -f -e -r Set the file suffix: procedure `proc' will go into file `proc.f' (default), `proc.e', or `proc.r' accordingly. Block data subprograms will go into files named `BLOCKDATA1.f', etc. -i Force output file names to lower case. -s Strip off data beyond column 72 together with any resulting trailing blanks. SPLIT(1) SPLIT(1) SEE ALSO sed(1), awk(1) grep in gre(1)