# Finding Text: grep

grep prints every line that contains a word or phrase, in one file, in many files or in a whole folder, and its options ignore capitals, number the lines, list only the files that match, count the matches or show the lines that don't match.

![Cheat sheet for the lesson Finding Text: grep: grep prints every line that contains a word or phrase, in one file, in many files or in a whole folder, and its options ignore capitals, number the lines, list only the files that match, count the matches or show the lines that don't match.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/bebe61f841f54669bf72e58b19a29ecd.webp)

- Category: Bash
- Level: Apprentice
- Tags: case-sensitivity, flags-and-options, grep, linux, log-file, unix
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/bash-grep-cheat-sheet
