I have a big file with blast results (if you know what this means, otherwise look at it just as a text file with a specific form).
I am trying to extract some ids from within this file, which have certain parameters.
For example, some Of my IDs have the term 'No hit results' connected to them.
This is what I am trying to extract.
this is how it looks loike:
Query= ssc-miR-345-3p_st
Length=21
RID: 1307544734-17235-35154543375.BLASTQ1
***** No hits found *****
Lambda K H
1.37 0.711 1.31
Gapped
Lambda K H
1.37 0.711 1.31
Effective search space used: 0
In the complete file I have 15517 'Query=' and for 389 of them I can also find 'No hits found'.
My Qeustion is how can I found out which Queries are connected to this 'No hits'.
@fpmurphy - sorry for the double posting. it wasn't deliberate.
I would still like to know if there is a possibility to search in a list of files with grep like I did in my example and pipe them to to a second grep command to look for a different term.
I am asking because I will probably need to work on the list of file with other terms, which might have different structure. than this one here.