![ubuntu 压缩拆分](https://i-blog.csdnimg.cn/blog_migrate/b38815662bdf8f74f8b976e20f32f353.png)
ubuntu 压缩拆分
If you have an unwieldy text file that you are trying to process, splitting it in sections can sometimes help processing time, especially if we were going to import a file into a spreadsheet. Or you might want to just retrieve a particular set of lines from a file.
如果您要处理一个笨拙的文本文件,将其分成几部分有时可以帮助您节省时间,尤其是当我们要将文件导入电子表格时。 或者,您可能只想从文件中检索一组特定的行。
Enter split, wc, tail, cat, and grep. (don’t forget sed and awk). Linux contains a rich set of utilities for working with text files on the command line. For our task today we will use split and wc.
输入split,wc,tail,cat和grep。 (不要忘记sed和awk)。 Linux包含大量用于在命令行上处理文本文件的实用程序。 对于今天的任务,我们将使用split和wc。
First we take a look at our log file….