[FZH] 请教文本处理问题

xiyoulaoyuanjia xiyoulaoyuanjia at gmail.com
Sat Apr 27 02:55:13 UTC 2013


在 2013年4月27日上午8:21,牛博恩 <im.newborn在qq.com>写道:

> 有两个文本文件,1.txt 和2.txt
> 我想把2.txt的内容附加到1.txt的每一行后面
> 比如1.txt内容是
> 1
> 2
> 3
> 4
>
> 2.txt的内容和1.txt相同,最后希望得到的效果是
> 11
> 22
> 33
> 44
> ----------------------
> 求用vim或者sed,awk这样的工具的解决办法
> --
>
两个 文件一样?直接使用vim打开  1.txt 使用列模式复制。然后粘帖就好了呀。


-- 
继续上路。。


More information about the Chinese mailing list