Lesson 11: Searching Text with grep
Files can be huge. Instead of reading everything, `grep` finds for you only the lines containing a certain word. It's like Ctrl+F, but for the terminal — and much more powerful.
grep is asking a friend: "read the whole book and tell me only the lines that mention this word".
- grep
- A command that finds lines containing certain text
- Pattern
- The word or text grep searches for
- Case-insensitive (-i)
- grep -i ignores the difference between upper and lower case