I have multiple files from which I want to extract a few values, and combine across files into one file.
So, in one file I have the following written down:
------------------------
Population pairwise FSTs
------------------------
Distance method: Pairwise differences
1 2
1 0.00000
2 -0.00024 0.00000
------------
FST P values
------------
Number of permutations : 110
1 2
1 *
2 0.63964+-0.0497 *
I am want to write a script which will pull out the yellow highlighted values( -0.000024 and the 0.63964), and put these in a tab delimited file that has two columns. So that it will look like this: