Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

Name

split

Synopsis

split [option] [infile] [outfile]

Split infile into equal-sized segments. infile remains unchanged, and the results are written to outfile aa, outfile ab, and so on. (Default is xaa, xab, etc.). If infile is (or missing and default outfile is used), standard input is read.

Options

-n, -l n

Split infile into n-line segments (default is 1000).

-b n [ km ]

Split infile into n-byte segments. Alternate blocksizes may be specified:

k

1 kilobyte

m

1 megabyte

-

Take input from the standard input.

Examples

Break bigfile into 1000-line segments:

                     split bigfile

Join four files, then split them into 10-line files named new.aa, new.ab, and so on. Note that without the -, new. would be treated as a nonexistent input file:

                     cat list[1-4] | split -10 - new.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mac OS X Internals: A Systems Approach

Mac OS X Internals: A Systems Approach

Amit Singh
C++ In a Nutshell

C++ In a Nutshell

Ray Lischner
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar
Optimized C++

Optimized C++

Kurt Guntheroth

Publisher Resources

ISBN: 0596003706Supplemental ContentCatalog PageErrata