# Grep

> grep, egrep, fgrep, rgrep - print lines that match patterns

grep is a command-line utility for searching plain-text data sets for lines that match a regular expression.

### [Manual](https://www.gnu.org/software/grep/manual/grep.html)

## TIL(s)

* [Grep Case Insensitive Search](/linux/grep/grep-case-insensitive-search.md)
* [Grep Count Occurance](/linux/grep/grep-count-matches.md)
* [Grep Exact Match](/linux/grep/grep-exact-match.md)
* [Grep Invert Search](/linux/grep/grep-invert-search.md)
* [Grep On Continous Stream](/linux/grep/grep-on-continous-stream.md)
* [Grep Quiet Mode](/linux/grep/grep-quiet-mode.md)
* [Grep Search For Multiple Strings](/linux/grep/grep-search-for-multiple-strings.md)
* [Remove Empty Lines](/linux/grep/remove-empty-lines.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://til.devjugal.com/linux/grep.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
