split command in linux
来源:互联网 发布:淘宝c店保证金 编辑:程序博客网 时间:2024/06/15 02:09
split
split is an useful command in linux to split files. I awlays use this command like this
split -d a.txt -l 1000000
which split a.txt to output files of 1000 lines each and have numeric suffixes. For example, if a.txt have 50000000 lines, then this command will split a.txt to x01 x02 x03 x04 x05 .
But there is a situation that there are two files to split at the same time in a multi-process program, the two split command will generate the same output files and then they will cover each other. Obviously it will cause error. Now you can use split like this:
split -d a.txt -l 100000 a_
which will generate output files like a_00 a_01…. Then they will not conflict.
For more infomation about split, refer [^ask ubuntu] here
[^ask ubuntu] : http://askubuntu.com/questions/54579/how-to-split-larger-files-into-smaller-parts
- split command in linux
- Date command in Linux
- Linux Command Line in English
- 10 command line in Linux
- Command Line in Mac/Linux
- Merge/Split PDF files in Linux
- Installing MySQL server in linux command
- 10 xargs command example in linux
- HowTo: Use cat Command In Linux / UNIX
- 12 TOP Command Examples in Linux
- 15 Basic ‘ls’ Command Examples in Linux
- 12 TOP Command Examples in Linux
- Understanding free command in Linux/Unix
- UNDERSTANDING FREE COMMAND IN LINUX/UNIX
- linux_18 Tar Command Examples in Linux
- linux_13 Basic Cat Command Examples in Linux
- linux split
- linux split
- java实战1——浮点数转人民币读法
- 在安装SQL Server的时候提示 Microsoft visual studio 2008 早期之前的版本 报错 解决办法
- tomcat运行原理
- python 压力测试代码
- cocoaPods从安装到使用
- split command in linux
- linux修改用户名
- 【Linux操作系统】文件的基本操作
- 深入浅出Mybatis-分页
- java中级-11-GUI图形用户界面(1)-GUI概念及组件类型
- MyBatis拦截器原理探究
- ubuntu 12.04以及后续版本的wubi安装
- Socket的原理
- 初学python------pdb调试命令