In the attached file I am using awk
to skip the header row, search for specific text, and print particular values that are next to it all from the same field.
awk FNR > 1 '$79 == "Bases in target regions"":" "Number of amplicons"': "Target bases with no strand bias"':" {print $79}' > output.txt
Desired output:
Bases in target regions: 268545
Number of amplicons: 1507
Target bases with no strand bias: 84.70%
I also tried the below and it runs but the output is empty
awk -F FNR>1 '$79 == "Bases in target regions"":" {print $79}' test.txt > output.txt