01 / 09
What if you do not know the name?
find was the tool for searching by name. But you do not always remember a thing by its name.
- "Which log was it that had the error in it?"
- "Which diary entry was the one where I wrote about ramen?"
That is when you use grep. It reads what is inside a file and puts out the lines with that word in them.