Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

bfs(1)

csplit(1)



  split(1)                            CLIX                            split(1)



  NAME

    split - Splits a file into pieces

  SYNOPSIS

    split [-n] [file [name]]

  FLAGS

    -n   Specifies the number of lines to put in an output file.

  DESCRIPTION

    The split command reads file and writes it in n-line pieces (default 1000
    lines) onto a set of output files.  The name of the first output file is
    name with aa appended, and so on lexicographically, up to zz (a maximum of
    676 files).  The name argument cannot be longer than 12 characters.  If no
    output name is given, x is the default.

    If no input file is given, or if - is given instead, then stdin is used.

  EXAMPLES

    This example takes /usr/adm/accounting.dat and splits it into several
    400-line files.  Each file will begin with the name acct:

    split -400 /usr/adm/accounting.dat acct


  DIAGNOSTICS

    cannot open input
           split is unable to access the input file.

    more than aa-zz output files needed, aborting split
           More that 676 files would be generated.

  EXIT VALUES

    The split command exits with a value of 0 if successful and a value of 1
    if not successful.

  RELATED INFORMATION

    Commands: bfs(1), csplit(1)








  2/94 - Intergraph Corporation                                              1




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