ste*_*anB 87 text-editing windows-xp 7-zip
是否有工具可以将大文本文件 (9Gb) 拆分为较小的文件,以便我可以打开它并查看?
有什么可以从 Windows (XP) 附带的命令行中使用的吗?
或者最好的拆分方法是什么?我可以使用 7z 创建单独的卷,然后单独解压缩其中之一吗?它是可读的还是需要所有其他部分再次解压缩到大文件中?
更新
我将快速的 48 行 python 脚本放在一起,将大文件拆分为 0.5GB 的文件,即使在 vim 中也很容易打开。我只需要查看日志最后一部分的数据(是的,它是一个日志文件)。每条记录都分为多行,因此 grep 不会这样做。
Fly*_*yto 36
在GNU核心utils的包(可这里对于Windows)包含分割工具。
该--help文件如下:
Usage: split [OPTION] [INPUT [PREFIX]]
Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default
size is 1000 lines, and default PREFIX is `x'. With no INPUT, or when INPUT
is -, read standard input.
Mandatory arguments to long options are mandatory for short options too.
-a, --suffix-length=N use suffixes of length N (default 2)
-b, --bytes=SIZE put SIZE bytes per output file
-C, --line-bytes=SIZE put at most SIZE bytes of lines per output file
-d, --numeric-suffixes use numeric suffixes instead of alphabetic
-l, --lines=NUMBER put NUMBER lines per output file
--verbose print a diagnostic to standard error just
before each output file is opened
--help display this help and exit
--version output version information and exit
SIZE may have a multiplier suffix: b for 512, k for 1K, m for 1 Meg.
Run Code Online (Sandbox Code Playgroud)
例如,要将 input.txt 拆分为 100Mb 的块,仅在行尾拆分,
split input.txt -C 100m
Run Code Online (Sandbox Code Playgroud)
将为您提供名为 xaa、xab、xac 等的输出文件。
小智 6
您可以使用 7zip 本身来拆分文件。(您可以保存为 .zip 或 .7z 格式。)当您创建存档时,有一个名为“拆分卷,字节”的选项。只需选择您想要的块大小。
是的,如果您愿意,您可以单独解压缩它们。
| 归档时间: |
|
| 查看次数: |
433547 次 |
| 最近记录: |