grep, print lines matching a pattern - 1. Introduction

Go to the first, previous, next, last section, table of contents.

# 1. Introduction

GREP searches the input files for lines containing a match to a given pattern list. When it finds a match in a line, it copies the line to standard output (by default), or does whatever other sort of output you have requested with options. GREP expects to do the matching on text. Since newline is also a separator for the list of patterns, there is no way to match newline characters in a text.

Go to the first, previous, next, last section, table of contents.