Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Split command

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

The split command can split a large file into many small files, and sometimes it is necessary to split the file into smaller fragments, such as generating logs for readability.

Option

-b: the value is the size of each output file, in byte.

-C: the maximum number of byte per line in each output file

-d: use numbers as suffixes.

-l: the number of columns with a value of each output file

Example: split a file in units of 10k

After splitting split-b 10k 2.txt, you will get a xaa file.

Example: split a file with 3 behavior units

Split-l 3 company.txt has 3 more files

There are 9 lines.

Xaa file

Xab file

The xac file is 3 blank lines

Example: split a file and customize its name

Split-b 1 company.txt test_

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report