91 lines
3.8 KiB
HTML
91 lines
3.8 KiB
HTML
<head>
|
|
<title>split(1) - Plan 9 from User Space</title>
|
|
<meta content="text/html; charset=utf-8" http-equiv=Content-Type>
|
|
</head>
|
|
<body bgcolor=#ffffff>
|
|
<table border=0 cellpadding=0 cellspacing=0 width=100%>
|
|
<tr height=10><td>
|
|
<tr><td width=20><td>
|
|
<tr><td width=20><td><b>SPLIT(1)</b><td align=right><b>SPLIT(1)</b>
|
|
<tr><td width=20><td colspan=2>
|
|
<br>
|
|
<p><font size=+1><b>NAME </b></font><br>
|
|
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
|
|
|
|
split – split a file into pieces<br>
|
|
|
|
</table>
|
|
<p><font size=+1><b>SYNOPSIS </b></font><br>
|
|
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
|
|
|
|
<tt><font size=+1>split</font></tt> [ <i>option ...</i> ] [ <i>file</i> ]<br>
|
|
|
|
</table>
|
|
<p><font size=+1><b>DESCRIPTION </b></font><br>
|
|
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
|
|
|
|
<i>Split</i> reads <i>file</i> (standard input by default) and writes it in
|
|
pieces of 1000 lines per output file. The names of the output
|
|
files are <tt><font size=+1>xaa</font></tt>, <tt><font size=+1>xab</font></tt>, and so on to <tt><font size=+1>xzz</font></tt>. The options are<br>
|
|
<tt><font size=+1>−n</font></tt> <i>n</i> Split into <i>n</i>-line pieces.<br>
|
|
<tt><font size=+1>−l</font></tt> <i>n</i> Synonym for <tt><font size=+1>−n</font></tt> <i>n</i>, a nod to Unix’s syntax.<br>
|
|
<tt><font size=+1>−e</font></tt> <i>expression<br>
|
|
</i>
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
|
|
|
|
File divisions occur at each line that matches a regular <i>expression</i>;
|
|
see <a href="../man7/regexp.html"><i>regexp</i>(7)</a>. Multiple <tt><font size=+1>−e</font></tt> options may appear. If a subexpression
|
|
of <i>expression</i> is contained in parentheses <tt><font size=+1>(</font></tt>...<tt><font size=+1>)</font></tt>, the output file
|
|
name is the portion of the line which matches the subexpression.<br>
|
|
|
|
</table>
|
|
<tt><font size=+1>−f</font></tt> <i>stem<br>
|
|
</i>
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
|
|
|
|
Use <i>stem</i> instead of <tt><font size=+1>x</font></tt> in output file names.<br>
|
|
|
|
</table>
|
|
<tt><font size=+1>−s</font></tt> <i>suffix<br>
|
|
</i>
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
|
|
|
|
Append <i>suffix</i> to names identified under <tt><font size=+1>−e</font></tt>.<br>
|
|
|
|
</table>
|
|
<tt><font size=+1>−x</font></tt> Exclude the matched input line from the output file.<br>
|
|
<tt><font size=+1>−i</font></tt> Ignore case in option <tt><font size=+1>−e</font></tt>; force output file names (excluding
|
|
the suffix) to lower case.<br>
|
|
|
|
</table>
|
|
<p><font size=+1><b>SOURCE </b></font><br>
|
|
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
|
|
|
|
<tt><font size=+1>/usr/local/plan9/src/cmd/split.c<br>
|
|
</font></tt>
|
|
</table>
|
|
<p><font size=+1><b>SEE ALSO </b></font><br>
|
|
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
|
|
|
|
<a href="../man1/sed.html"><i>sed</i>(1)</a>, <a href="../man1/awk.html"><i>awk</i>(1)</a>, <a href="../man1/grep.html"><i>grep</i>(1)</a>, <a href="../man7/regexp.html"><i>regexp</i>(7)</a><br>
|
|
|
|
</table>
|
|
|
|
<td width=20>
|
|
<tr height=20><td>
|
|
</table>
|
|
<!-- TRAILER -->
|
|
<table border=0 cellpadding=0 cellspacing=0 width=100%>
|
|
<tr height=15><td width=10><td><td width=10>
|
|
<tr><td><td>
|
|
<center>
|
|
<a href="../../"><img src="../../dist/spaceglenda100.png" alt="Space Glenda" border=1></a>
|
|
</center>
|
|
</table>
|
|
<!-- TRAILER -->
|
|
</body></html>
|