Shell / Commands

grep

English

Overview

A command for searching for lines that match a string pattern.

Details

A command that extracts matching lines from text using regular-expression pattern matching, used frequently for things like log analysis. In practice, options are combined for flexible filtering -- -r to search a directory recursively, -i to ignore case, -v to show only non-matching lines, and so on.

More Linux terms