I am totally new to unix and need some help regarding grep command
I have an output file with 7 parameter values S1, S2..., S7. How can I use grep command to extract only the values and write them as an array to a new file, which I want to plot later.
<<<<< Function evaluation summary (APPROX_INTERFACE_1): 1808 total (1808 new, 0 duplicate)
<<<<< Best parameters =
3.3500000000e+02 S1
1.0357218750e+00 S2
7.2046250000e+01 S3
7.2872921875e+01 S4
5.7405507812e+01 S5
5.0000054687e+01 S6
2.3999984375e+02 S7
<<<<< Best objective function =
8.0674284316e-01
grep
has the-o
flag? How about the-P
flag? Also, please edit your question and show us the output you are expecting from this input. What are the 7 parameter values? IsFunction
a parameter? IsAPPROX_INTERFACE_1
one? How about 1808? How can we identify the parameters?