morpheus-base

morpheus base system
git clone git://git.2f30.org/morpheus-base
Log | Files | Refs

split.1 (920B)


      1 .TH SPLIT 1 sbase\-VERSION
      2 .SH NAME
      3 split \- split up a file
      4 .SH SYNOPSIS
      5 .B split
      6 .RB [ \-d ]
      7 .RB [ \-a
      8 .IR len ]
      9 .RB [ \-b
     10 .RI [ bytes [k|m|g]]]
     11 .RB [ \-l
     12 .RI [ lines ]]
     13 .RI [ input
     14 .RI [ prefix ]]
     15 
     16 .SH DESCRIPTION
     17 .B split
     18 Reads a file, splitting it into smaller files, every
     19 .IR bytes
     20 bytes
     21 or
     22 .IR lines
     23 lines. If
     24 .B split
     25 runs out of filenames before all the data can be written, it stops at the
     26 last valid filename, leaving all the written data on the disk.
     27 
     28 The
     29 .IR b
     30 and
     31 .IR l
     32 flags are mutually exclusive. Only the last one specified will be obeyed.
     33 
     34 .SH OPTIONS
     35 .TP
     36 .B \-d
     37 Use decimal suffixes rather than alphabetical.
     38 
     39 .TP
     40 .B \-a "len"
     41 Set the suffix length to
     42 .IR len
     43 characters long.
     44 
     45 .TP
     46 .B \-b [bytes[k|m|g]]
     47 Start a new file every
     48 .IR bytes
     49 bytes. The units k, m, and g are case insensitive, and powers of 2, not 10.
     50 
     51 .TP
     52 .B \-l [lines]
     53 Start a new file every
     54 .IR lines
     55 lines.
     56 
     57 .SH SEE ALSO
     58 .IR cat (1)