Lesson 8 · Reading and Writing Files · Zero to AI Hero by Meegrow Labs
You search for a word or pattern inside a file with the grep command, for example grep error log.txt prints every line in log.txt that contains the word error.