I have a lot of files (>100,000) from which I would like to extract a specific string and the filename itself. Files are organized like this:
Filename: sequence.php?ID=gi|90022703|ref|YP_528530.1|
[Random text]
Description: Xylanase/Chitin Deacetylase-Like Protein [Saccharophagus Degradans 2-40]
Source: NCBI-Bacteria
Species: Saccharophagus degradans 2-40
Taxonomy: Bacteria; Proteobacteria; Gammaproteobacteria; Alteromonadales; Alteromonadaceae; Saccharophagus
I would like to extract both the filename (preferentially only everything after the ID=) and everything after 'Taxonomy' in the file.
Something like:
gi|90022703|ref|YP_528530.1| Bacteria; Proteobacteria; Gammaproteobacteria; Alteromonadales; Alteromonadaceae; Saccharophagus
Is this possible? (also for multiple files, i.e. append each new information to a text output file)