用脚本(shell,vb,批处理)都可以,将一个大文件,以10MB每个,进行拆分。不能拆散文件的格式。

[复制链接]
查看11 | 回复1 | 2013-6-2 00:49:51 | 显示全部楼层 |阅读模式
#!/usr/bin/perluse strict;open INPUT, "", "output_${split_idx}.txt"; my $size;my $split_size = 10 * 1024 * 1024;my $current_item_idx;my $priv_item_idx;while([I]) {
$current_item_idx = substr($_, 0, 1);
$size += length($_);
if($size >= $split_size && $current_item_...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行