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