Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ split(1) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

bfs

csplit

split

PURPOSE

     Splits a file into pieces.

SYNOPSIS
     split [ -n ] [ file [ name ] ]


DESCRIPTION

     The split  command reads file  and writes it  in num-line
     pieces (default  1000 lines)  to a  set of  output files.
     The name of the first output file is prefixaa, the second
     is  prefixab,   and  so  on   lexicographically,  through
     prefixzz  (a maximum  of  676 files).   prefix cannot  be
     longer  than 12  characters.  If  you do  not specify  an
     output name, x is assumed.

     If you do not specify an  input file, or if you specify -
     (minus)  in  place of  file,  then  split reads  standard
     input.

EXAMPLES

     1.  To split a file into 1000-line segments:

           split  book

         This splits "book" into 1000-line segments named xaa,
         xab, xac, and so forth.
     2.  To split a file into 50-line segments and specify the
         file name prefix:

           split  -50  book  sect

         This  splits  "book"   into  50-line  segments  named
         "sect"aa, "sect"ab, "sect"ac, and so forth.

RELATED INFORMATION

     The following commands:  "bfs" and "csplit."

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026