split(1) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

split(1)

split(1)                         User Commands                        split(1)



NAME
       split - split a file into pieces

SYNOPSIS
       split [-linecount | -l linecount] [-a suffixlength]
            [file [name]]


       split [-b n | nk | nm] [-a suffixlength] [file [name]]

DESCRIPTION
       The  split  utility  reads  file and writes it in linecount-line pieces
       into 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). If no output name is given, x is used as the default  (out‐
       put-files will be called xaa, xab, and so forth).

OPTIONS
       The following options are supported:

       −linecount | -l linecount

           Number of lines in each piece. Defaults to 1000 lines.


       -a suffixlength

           Uses  suffixlength  letters to form the suffix portion of the file‐
           names of the split file. If -a is not specified, the default suffix
           length is 2.


       -b n

           Splits  a  file into pieces n bytes in size. The value n is a plain
           number, with an optional fraction  and  scale  factor  representing
           multiples  of  1024 bytes: k, m, g, t, p, or e, denoting kilobytes,
           megabytes, gigabytes, terabytes,  petabytes,  or  exabytes  respec‐
           tively.


       -?
       --help

           Print usage message and immediately exit.



OPERANDS
       The following operands are supported:

       file    The  path  name  of  the ordinary file to be split. If no input
               file is given or file is −, the standard input will be used.


       name    The prefix to be used for each of the files resulting from  the
               split  operation.  If no name argument is given, x will be used
               as the prefix of the output files.


ENVIRONMENT VARIABLES
       See environ(7) for descriptions of the following environment  variables
       that  affect  the  execution  of split: LANG, LC_ALL, LC_CTYPE, LC_MES‐
       SAGES, and NLSPATH.

EXIT STATUS
       The following exit values are returned:

       0     Successful completion.


       >0    An error occurred.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE  VALUE  _  Availabilitysystem/core-os  _ CSIEnabled _ Interface
       StabilityCommitted _ StandardSee standards(7).


SEE ALSO
       csplit(1), attributes(7), environ(7), standards(7)



Oracle Solaris 11.4             29 October 2021                       split(1)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3