Split merged files using split in Linux

Source: Internet
Author: User
Keywords Linux splitting merged files
Tags behavior data default file files linux read split

Split merged files using split in Linux

We use the split command to complete:

Usage: Split [option] ... [Enter [prefix]]
Splits the input into a fixed size fragment and outputs to the prefix AA, prefix ab,... ;
The default is to split the unit by 1000 behavior and the default prefix is "x". If you do not specify a file, or
Person file is "-", the data is read from standard input.

Parameters that must be used for long options are also required for short options.
&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP; -A,--suffix-length=n specifies that the suffix length is N (default is 2)
-B,--bytes= size specifies the byte size of each output file
-C,--line-bytes= size specifies the maximum line byte size in each output file
-D,--numeric-suffixes uses numeric suffixes instead of letter suffixes
-L,--lines= number specifies how many rows per output file
--verbose output file characteristics before each output file opens
--HELP displays this help information and exits
--version display version information and exit

The SIZE can be an optional integer followed by one of the following units:
KB 1000,k 1024,mb 1000*1000,m 1024*1024, and G, T, P, E, Z, Y.

[Root@localhost/] #split-b1440k a_whopping_big_file Chunk
[Root@localhost/] #cat chunk* > A_whopping_big_file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.