in reply to search and extract lines which contain a word
In addition to ikegami's solutions above
On a Windows system: