本文介绍了如何分割大文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很大的CSV文件(7.3GB; 16,300,000行),如何将该文件分成两个文件?

I have a large CSV file (7.3GB; 16,300,000 lines), how can I split this file into two files?

推荐答案

您是否看过split命令?有关更多信息,请参见 man 页面.

Have you taken a look at the split command? See this man page for more information.

页面包含此命令的示例用法.

This page contains an example use of this command.

在旁边:

如果您不确定特定的命令是什么,man -k命令对于查找unix/linux命令非常有用.使用man -k命令指定关键字,系统将拉出相关命令.例如,

the man -k command is rather useful for finding unix/linux commands if you aren't quite sure what the specific command is. Specify a keyword with the man -k command and the system will pull out related commands. E.g.,

% man -k split

将产生:

csplit (1)           - split a file into sections determined by context lines
dirsplit (1)         - splits directory into multiple with equal size
dpkg-split (1)       - Debian package archive split/join tool
gpgsplit (1)         - Split an OpenPGP message into packets
pnmsplit (1)         - split a multi-image portable anymap into multiple single-image files
ppmtoyuvsplit (1)    - convert a portable pixmap into 3 subsampled raw YUV files
split (1)            - split a file into pieces
splitdiff (1)        - separate out incremental patches
splitfont (1)        - extract characters from an ISO-type font.
URI::Split (3pm)     - Parse and compose URI strings
wcstok (3)           - split wide-character string into tokens
yuvsplittoppm (1)    - convert a Y- and a U- and a V-file into a portable pixmap
zipsplit (1)         - split a zipfile into smaller zipfiles

这篇关于如何分割大文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 05:28