ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahz_5.4.0.1/split.htm

102 lines
2.7 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<meta http-equiv="Content-Type" content=
"text/html; charset=utf-8">
<title>split - Split files into pieces</title>
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</HEAD>
<body bgcolor="#FFFFFF">
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h2>split - Split files into pieces</h2>
<p><strong>Synopsis</strong></p>
<p><strong>split [-b</strong> <em>byte_count</em><strong>[k|m]]
[-l</strong> <em>line_count</em><strong>]</strong> [<em>file</em>
[<em>prefix</em>]]</p>
<p><strong>Description</strong></p>
<p>The <strong>split</strong> utility reads the given <em>file</em>
(or standard input if no file is specified) and breaks it up into
files of 1000 lines each.</p>
<p><strong>Options</strong></p>
<dl>
<dt><strong>-b</strong></dt>
<dd>Create files that are <em>byte_count</em> bytes in length. If
<strong>k</strong> is appended to the number, the file is split
into <em>byte_count</em> kilobyte pieces. If <strong>m</strong> is
appended to the number, the file is split into <em>byte_count</em>
megabyte pieces.</dd>
<dt><strong>-l</strong></dt>
<dd>Create files that are <em>line_count</em> lines in length.</dd>
</dl>
<p><strong>Operands</strong></p>
<p>If additional arguments are specified, the first is used as the
name of the input file which is to be split. If a second additional
argument is specified, it is used as a prefix for the names of the
files into which the file is split. In this case, each file into
which the <em>file</em> is split is named by the prefix followed by
a lexically ordered suffix in the range of "aa-zz". If the <em>
prefix</em> argument is not specified, the default prefix is "x".
The maximum number of possible output file names is 676.</p>
<p><strong>Exit Status</strong></p>
<ul>
<li>0 if successful</li>
<li>&gt;0 if an error occurs</li>
</ul>
<p><strong>Related information</strong></p>
<ul>
<li><a href="cmp.htm">cmp - Compare two files</a></li>
<li><a href="sed.htm">sed - Stream editor</a></li>
<li><a href="sort.htm">sort - Sort, merge, or sequence check text
files</a></li>
<li><a href="uniq.htm">uniq - Report or filter out repeated lines
in a file</a></li>
</ul>
<p><strong>Examples</strong></p>
<ol>
<li>Split the file jdk_v11.jar into files that are 1.44MB in size
and use the prefix "jdk_v11.". for the output files.
<pre>
split -b1440k jdk_v11.jar jdk_v11.
</pre>
</li>
<li>Split the file myapp.java into files of 100 lines each.
<pre>
split -l 100 myapp.java
</pre>
</li>
</ol>
<!-- end ibmbody========================================================= -->
</body>
</html>