cli helper. grep: search a file for a pattern

 [english] [русский]
About project

Linux grep

Print the version number of grep
Regular expression patern
Several regular expression paterns
File(s) with paterns
How to use patern
Ignores upper/lower case distinction during comparisons
Select only those lines containing matches that form whole words
Match only lines that use all characters in patern
Input data from From STDIN
Skip files whose base name matches
Skip files whose base name matches any of the file-name globs read from this file
Exclude directories from recursive searches
Search only files whose base name matches
Read all files under each directory, recursively
Display input actually coming from standard input as input coming from this file
If an input file is a directory then
If an input file is a device, FIFO or socket then
How to Process a binary file
Treat the input as a set of lines, each terminated by a zero byte
How to print result
How to print the file name for each match
Precedes each line by its line number in the file (first line is 1)
Prints all lines except those that contain the pattern
Print only the matched (non-empty) parts of a matching line
Suppresses error messages about nonexistent or unreadable files
Print the 0-based byte offset within the input file before each line of output
Output a zero byte instead of the character that normally follows a file name
Stop reading a file after NUM matching lines
Print NUM lines of trailing context after matching lines
Print NUM lines of leading context before matching lines
Print NUM lines of output context
Make sure that the first character of actual line content lies on a tab stop, so that the alignment of tabs looks normal
Report Unix-style byte offsets. Only for Windows and MS-DOS
Use line buffering on output
Use the system call <b>mmap</b> to read input (instead of the default <b>read</b> system call)
Treat the file(s) as binary © 2008-2014