Board logo

标题: txt文件怎么分卷 [打印本页]

作者: wert123     时间: 2007-7-7 17:20    标题: txt文件怎么分卷
我以前只知道用copy将几个txt文件合成一个一个大txt lxmxn 斑竹大师能告诉我怎么把一个大的txt文件分成几个小个txt文件吗? 最好是按行分------------------分解生成成的许多txt文件中,除最后一txt文件外,其余都有相同的行,即剩下的给最后一个文本 按字的个数分(不包含空格)-------------------分解生成成的许多txt文件中,除最后一txt文件外,其余都有相同的字数,即剩下的给最后一个文本 [ Last edited by bjsh on 2007-7-31 at 10:01 AM ]

作者: bjsh     时间: 2007-7-7 17:30
$ split --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. Report bugs to <bug-coreutils@gnu.org>.
yx127.com/tools.html

作者: wert123     时间: 2007-7-7 17:50
能不借助第三方软件吗 我的是XP的

作者: lxmxn     时间: 2007-7-7 18:43
按字的个数分具体是啥意思?单词?还是个数? 最好举个例子来说明。