all experts
I have two types of files in the same directory
ex1) record1.txt (record2, record3, record4 ...)
11111 absda qwedc
11112 uiyds dqeds
11113 eqwev jfsec ...
ex2) Summary1.txt (Summary2, Summary3, Summary4 ...)
----some data is written----
.....
.....
***RESULT 111.114 30.344 90.3454*** OTHERNUMBER#1 OTHERNUMBER#2 .....
.....
.....
All I want to do is extract RESULT X(number) Y(number) Z(number) of Summary#.txt. And then, put those positions into the corresponding record#.txt, but I want to add some information, like this
X Y Z
111.114 30.344 90.3459
11111 absda qwedc
11112 uiyds dqeds
11113 eqwev jfsec ...
So, I want my final file, record#.txt, to look above. I tried sed and cat... all failed.
Thanks in advance!
awk
?