csplit — Split Files, Based on Context

Synopsis

/usr/bin/csplit [-ks] [-f prefix] [-n number] file arg1 argn
					

Description

Use the csplit command to split a file into sections. The csplit command reads the file named by the file operand, writes all or part of that file into other files as directed by the arg operands, and writes the sizes of the files.

Options

-k Leave previously created files intact. By default, csplit removes created files if an error occurs.
-s Suppress the output of file size messages.
-f prefix Name the created files prefix 00, prefix 01, prefixn . The default is xx00 ...xxn. If the prefix argument would create a file name exceeding 14 bytes, an error results; csplit exits with a diagnostic message and no files are ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.