Today's question concerns finding the first and last matches in a file Sometimes, I need to make two passes at seeking content in this file, once for the first occurrence; and a second grep for obtaining the last occurrence of a phrase. After the second… Read the full text.