Board logo

标题: 请问怎样可以将两文档合并?(dos下不能合并) [打印本页]

作者: ad1234sl     时间: 2009-2-25 19:52    标题: 请问怎样可以将两文档合并?(dos下不能合并)

请问怎样可以将 1.txt 和 2.txt 合并成3.txt? 其中 1.txt删除第一行。。。从第二行开始和 2.txt合并?????

1.txt
Invalid keyboard code specified
Disk  Partitions  Cylinders  Heads  Sectors  Mbytes  Model
  1        7        30401     255      63  238475.2  ST3250310AS
  2        1          781     128      63    3077.6  ST33221A
  3        4          123     255      63     972.0  USB 2.0 SD/MMC Reader

2.txt
1 or 2

生成的3.txt
1 or 2
Disk  Partitions  Cylinders  Heads  Sectors  Mbytes  Model
  1        7        30401     255      63  238475.2  ST3250310AS
  2        1          781     128      63    3077.6  ST33221A
  3        4          123     255      63     972.0  USB 2.0 SD/MMC Reader

[ Last edited by ad1234sl on 2009-2-25 at 22:45 ]
作者: tireless     时间: 2009-2-25 20:05
CODE:  [Copy to clipboard]
(type 2.txt & more +1 1.txt)>3.txt

作者: ad1234sl     时间: 2009-2-25 20:17
感谢楼上的兄弟,已经可以了。。。。。。。。。
作者: ad1234sl     时间: 2009-2-26 00:12
奇怪,今天只是在 Win 下测试正常,今晚在 dos 下测试不过,请知道的兄弟解答一下。。。。。这该怎样解决。。。。。。。。




[ Last edited by ad1234sl on 2009-2-26 at 00:19 ]
作者: netbenton     时间: 2009-2-26 02:21
more 是外部命令,需要more.com文件的支持,
作者: ad1234sl     时间: 2009-2-26 08:52
奇怪,在本站的一张启动盘中提取出 more 还是不行。。。。。。。。


作者: netbenton     时间: 2009-2-27 09:12
这样呀?
是不是纯dos下不支持&或者分组呢?要不你把它分成两行算了:
type 2.txt>3.txt
more +1 1.txt>>3.txt

再出错,我就想不到了。




欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) Powered by Discuz! 2.5