TU ACM logo.
blog

Printing Lines Containing a Specific Word

Writing the code will be the easy part.
Posted 15 January 2020 at 1:26 PM
By Joseph Mellor

This is the seventeenth article in the Making Sense of C series. In this article, we're going to write some new code and combine it with the code we've written in the last article to create a new program that prints out every line in a user specified file that contains a user-specified word.

A picture of Joseph Mellor, the author.

Joseph Mellor is a Senior at TU majoring in Physics, Computer Science, and Math. He is also the chief editor of the website and the author of the tumd markdown compiler. If you want to see more of his work, check out his personal website.
Credit to Allison Pennybaker for the picture.