Linux/unix split large file split merge

Source: Internet
Author: User

Split command

Function Description: Cut the file.

Syntax: Split [--help][--version][-< rows >][-b < bytes >][-c < bytes >][-l < rows >][files to be cut [output file name]

Additional note: Split can cut the file into smaller files, with a preset of 1000 lines cut into a small file.

Parameters

-< lines > or-l< > Specify how many lines to cut into a small file.

-B < bytes > Specify how many words you want to cut into a small file. Support Unit: M,k

The-c < byte > is similar to the-B parameter, but maintains the integrity of each line as much as possible when cutting.

-a specifies the suffix length of the output file name, which defaults to 2 (Aa,ab ...)

-d Specifies the suffix of the output file name to replace with a number

--help display Help.

--version Displays version information.

[Output file name] Sets the file's predecessor file name after cutting, and split automatically adds a number to the pre-file name.

Examples of Use:

Split 1111 . log (delimited by bytes) Split 1000000 1111. log (delimited by number of rows)

Merge split files:

Cat file . Bin Cat file. bin

Linux/unix split large file split merge

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.