Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/help/en/bash/split.html
diff options
context:
space:
mode:
Diffstat (limited to 'help/en/bash/split.html')
-rw-r--r--help/en/bash/split.html96
1 files changed, 96 insertions, 0 deletions
diff --git a/help/en/bash/split.html b/help/en/bash/split.html
new file mode 100644
index 0000000..c9485a3
--- /dev/null
+++ b/help/en/bash/split.html
@@ -0,0 +1,96 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
+<head>
+<link rel="STYLESHEET" href="../term_tools/main.css" type="text/css">
+<title>split MAN Page</title>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+</head><body><!-- #BeginLibraryItem "/Library/head_bash.lbi" --><div id="nav-menu">
+<ul>
+<li><a class="rl" href="../term_tools/index.html"><img src="../term_tools/images/ss64.gif" title="Home" alt="Home"></a></li>
+<li><a class="rl" href="../term_tools/bash"><img src="../term_tools/images/bash-l.gif" title="bash" alt="bash"></a></li>
+<li><!-- Search Google -->
+<form action="http://www.google.com/search" method="get" style="margin:0px;padding:0px;">
+<div align="right">
+<input name="q" type="text" class="body" size="25">
+<input class="submit" type="submit" value="Search">
+<input type="hidden" name="q" value="site:ss64.com/bash/">
+</div>
+</form></li>
+<li><a class="rr" href="syntax.html"><img src="../term_tools/images/syntax-r.gif" title="Bash Syntax"></a></li>
+</ul>
+</div> <!-- #EndLibraryItem --><h1> split</h1>
+<p>Split a file into fixed-size pieces, creates output files containing
+consecutive sections of <em>INPUT</em> (standard input if none is given or INPUT is `-')</p>
+<pre>Syntax
+ split [<em>options</em>] [<em>INPUT</em> [<em>PREFIX</em>]]
+
+Options
+
+ -<em>LINES</em>
+ -l <em>LINES</em>
+ --lines=<em>LINES</em>
+ Put <em>LINES</em> lines of <em>INPUT</em> into each output file.
+
+ -b <em>BYTES</em>
+ --bytes=<em>BYTES</em>
+ Put the first <em>BYTES</em> bytes of <em>INPUT</em> into each output file.
+ Appending `b' multiplies <em>BYTES</em> by 512, `k' by 1024, and `m' by
+ 1048576.
+
+ -C <em>BYTES</em>
+ --line-bytes=<em>BYTES</em>
+ Put into each output file as many complete lines of INPUT as
+ possible without exceeding BYTES bytes. For lines longer than
+ BYTES bytes, put BYTES bytes into each output file until less than
+ BYTES bytes of the line are left, then continue normally. BYTES
+ has the same format as for the `--bytes' option.
+
+ --verbose
+ Write a diagnostic to standard error just before each output file
+ is opened.</pre>
+<p> By default, `split' puts 1000 lines of <em>INPUT</em> (or whatever is
+ left over for the last section), into each output file. <br>
+ <br>
+ The output files' names consist of <em>PREFIX</em> (`x' by default) followed by a group
+ of letters `aa', `ab', and so on, such that concatenating the output files in
+ sorted order by file name produces the original input file. <br>
+ <br>
+ If more than 676 output files are required, `split' uses `zaa', `zab', etc.<br>
+ <br>
+ <i>&quot;The man who is tired of London is tired of looking for a parking space&quot;
+ - Paul
+Theroux </i> </p>
+<p><b>Related</b>:<br>
+ <br>
+ <a href="csplit.html">csplit</a> - Split a file into context-determined pieces<br>
+ <a href="cut.html">cut</a> - Divide a file into several parts<br>
+ <a href="fmt.html">fmt</a> - Reformat paragraph text <br>
+ <a href="fold.html">fold</a> - Wrap input lines to fit in specified width<br>
+ <a href="head.html">head</a> - Output the first part of file(s) <br>
+ <a href="join.html">join</a> - Join lines on a common field<br>
+ <a href="paste.html">paste</a> - Merge lines of files <br>
+Equivalent Windows commands:
+<a href="../term_tools/nt/fc.html">FC</a> /lb - Compare two files</p>
+<!-- #BeginLibraryItem "/Library/foot_bash.lbi" --><p align="left"><script type="text/javascript"><!--
+google_ad_client = "pub-6140977852749469";
+google_ad_width = 300;
+google_ad_height = 250;
+google_ad_format = "300x250_as";
+google_ad_type = "text_image";
+google_ad_channel ="1984328893";
+google_color_border = "CCCCCC";
+google_color_bg = "CCCCCC";
+google_color_link = "000000";
+google_color_text = "333333";
+google_color_url = "0000FF";
+//--></script>
+<script type="text/javascript"
+ src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
+</script><br>
+</p>
+<div align="center"><hr size="1">
+ <p id="top"><a href="#"><img src="../term_tools/images/top-4.gif" width="47" height="53" border="0" alt="Back to the Top" title="Back to the Top"></a></p>
+ <p class="tagline">&copy; Copyright <a href="http://ss64.com/">SS64.com</a> 1999-2010<br>
+Some rights reserved<br>
+</p>
+</div><!-- #EndLibraryItem --></body>
+</html>