From Wikipedia, the free encyclopedia split (Unix)
split (Unix)
split is a Unix utility most commonly used to split a cat xaa xab xac > filename
file into two or more smaller files.
or
Usage cat xa[a-c] > filename
The command-syntax is:
Additional program options permit a maximum charac-
split [OPTION] [INPUT [PREFIX]] ter count (instead of a line count), a maximum line
length, how many incrementing characters in generated
The default behavior of split is to generate output files filenames, and whether to use letters or digits.
of a fixed size, default 1000 lines. The files are named by
appending aa, ab, ac, etc. to output filename. If output file-
name is not given, the default filename of x is used, for ex-
Manual
ample, xaa, xab, etc. When a hyphen (-) is used instead of • split(1): split a file into pieces – Linux User
input filename, data is derived from standard input. Commands Manual
To split filename to parts each 50 MB named partaa aa,
partab partac
ab, ac,.... See also
split -b50m filename part • csplit - splits by content rather than by size
• List of Unix utilities
To join the files back together again use the cat com-
mand
Retrieved from "http://en.wikipedia.org/w/index.php?title=Split_(Unix)&oldid=459939708"
Categories:
• Unix stubs
• Standard Unix programs
• Unix SUS2008 utilities
This page was last modified on 10 November 2011 at 08:26. Text is available under the Creative Commons Attribution-
ShareAlike License; additional terms may apply. See Terms of use for details. Wikipedia® is a registered trademark of
the Wikimedia Foundation, Inc., a non-profit organization.Contact us
Privacy policy About Wikipedia Disclaimers
1