split Flashcards
split
Output pieces of FILE to PREFIXaa, PREFIXab, …; default size is 1000 lines, and default PREFIX is ‘x’.
split –verbose
Display verbose information.
split -l
-l, –lines=NUMBER, Put NUMBER lines/records per output file.
split -b
-b, –bytes=SIZE, Put SIZE bytes per output file.
split -d
-d, Use numeric suffixes starting at -, not alphabetic.
split -e
-e, –elide-empty-files, Do not generate empty output files with ‘-n’
split -n
-n, –number=CHUNKS, Generate CHUNKS output files. CHUNKS may be:
N split into N files based on size of input
K/N output Kth of N to stdout
l/N split into N files without splitting lines/records
l/K/N output Kth of N to stdout without splitting lines/records
r/N like ‘l’ but use round robin distribution
r/K/N likewise but only output Kth of N to stdout
split -a
-a, –suffix-length=N, Generate suffixes of length N (default 2)