简单一点,如何插入一列到一个文档中:
目标文档A,具有下面的格式:
[abbott@master Rotation]$ cat Z90_Data.txt
-0.18806072 -1.26676373 0.00000000
-1.07578336 0.98044463 0.00000000
0.22164299 1.49297153 0.00000000
1.31421748 0.62563081 0.00000000
1.10936563 -0.75423682 0.00000000
-1.28063521 -0.39942300 0.00000000
要插入的文档B,具有下面的结构
[abbott@master Rotation]$ cat new.txt
B
N
O
F
P
Cl
如何形成具有下面的结构的文档C?
B -0.18806072 -1.26676373 0.00000000
N -1.07578336 0.98044463 0.00000000
O 0.22164299 1.49297153 0.00000000
F 1.31421748 0.62563081 0.00000000
P 1.10936563 -0.75423682 0.00000000
Cl -1.28063521 -0.39942300 0.00000000
一个文档操作问题
- O_O_BOT
- 帖子: 2461
- 注册时间: 2009-05-20 19:32
Re: 一个文档操作问题
paste -d" " file1 file2
irc 聊天室
ubuntu-cn 的irc 频道为
irc.ubuntu.com 8001 #ubuntu-cn
UTF8编码 可用 irssi xchat pidgin weechat 登录
http://webchat.freenode.net/?channels=ubuntu-cn
[url]irc://irc.freenode.net/ubuntu-cn[/url]
ubuntu-cn 的irc 频道为
irc.ubuntu.com 8001 #ubuntu-cn
UTF8编码 可用 irssi xchat pidgin weechat 登录
http://webchat.freenode.net/?channels=ubuntu-cn
[url]irc://irc.freenode.net/ubuntu-cn[/url]
-
- 帖子: 435
- 注册时间: 2007-07-11 22:45
Re: 一个文档操作问题
谢谢提示,
man paste看了一下
明白了....
有的时间不多,很多linux指令不知道, 让大家见笑了....
man paste看了一下
明白了....
有的时间不多,很多linux指令不知道, 让大家见笑了....