There is the example with two lines as below, but the real data have many lines. I want to only pick the taxa ending with 'viridae' in linux, maybe with awk. The order number of this kind of string/word is different if splitting by ";", like Orthomyxoviridae as 8th, and Solemoviridae as 7th.
Viruses; Riboviria; Orthornavirae; Negarnaviricota; Polyploviricotina; Insthoviricetes; Articulavirales; Orthomyxoviridae; Alphainfluenzavirus
Viruses; Riboviria; Orthornavirae; Pisuviricota; Pisoniviricetes; Sobelivirales; Solemoviridae; Polerovirus
May I ask how to achieve it? Thanks