中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-05 06:48
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » txt文件怎么分卷 查看 1,050 回复 3
楼 主 txt文件怎么分卷 发表于 2007-07-07 17:20 ·  中国 湖北 仙桃 电信
中级用户
★★
积分 301
发帖 135
注册 2007-05-15 16:49
19年会员
UID 88615
性别 男
状态 离线
我以前只知道用copy将几个txt文件合成一个一个大txt

lxmxn 斑竹大师能告诉我怎么把一个大的txt文件分成几个小个txt文件吗?
最好是按行分------------------分解生成成的许多txt文件中,除最后一txt文件外,其余都有相同的行,即剩下的给最后一个文本

按字的个数分(不包含空格)-------------------分解生成成的许多txt文件中,除最后一txt文件外,其余都有相同的字数,即剩下的给最后一个文本

[ Last edited by bjsh on 2007-7-31 at 10:01 AM ]
2 发表于 2007-07-07 17:30 ·  中国 浙江 杭州 电信
银牌会员
★★★
积分 2,000
发帖 621
注册 2007-01-01 00:00
19年会员
UID 75212
性别 男
状态 离线

$ split --help
Usage: split ]
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.

Report bugs to <bug-coreutils@gnu.org>.


http://yx127.com/tools.html
3 发表于 2007-07-07 17:50 ·  中国 湖北 仙桃 电信
中级用户
★★
积分 301
发帖 135
注册 2007-05-15 16:49
19年会员
UID 88615
性别 男
状态 离线
能不借助第三方软件吗
我的是XP的
4 发表于 2007-07-07 18:43 ·  中国 湖北 武汉 电信
版主
★★★★★
积分 11,386
发帖 4,938
注册 2006-07-23 17:10
20年会员
UID 59080
状态 离线
按字的个数分具体是啥意思?单词?还是个数?

最好举个例子来说明。
论坛跳转: