Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   grep    ( 1 )

линии печати, соответствующие шаблонам (print lines that match patterns)

Имя (Name)

grep - print lines that match patterns


Синопсис (Synopsis)

grep [OPTION...] PATTERNS [FILE...] grep [OPTION...] -e PATTERNS ... [FILE...] grep [OPTION...] -f PATTERN_FILE ... [FILE...]


Описание (Description)

grep searches for PATTERNS in each FILE. PATTERNS is one or more patterns separated by newline characters, and grep prints each line that matches a pattern. Typically PATTERNS should be quoted when grep is used in a shell command.

A FILE of '-' stands for standard input. If no FILE is given, recursive searches examine the working directory, and nonrecursive searches read standard input.