Answered by : ben-riemer
grep -m2 "two" in-file.txt | tail -n1
Source : | Last Update : Sat, 06 Nov 21