By grep no binary option, grep prints the matching lines. Print NUM lines of trailing context after matching lines. Places a line containing — between contiguous groups of matches.
Print NUM lines of leading context before matching lines. Print NUM lines of output context. Places a line containing –between contiguous groups of matches. Print the byte offset within the input file before each line of output. If the first few bytes of a file indicate that the file contains binary data, assume that the file is of type TYPE. By default, TYPE isbinary, and grep normally outputs either a one-line message saying that a binary file matches, or no message if there is no match. Surround the matching string with the marker find inGREP_COLOR environment variable.
If an input file is a device, FIFO or socket, use ACTION to process it. By default, ACTION is read, which means that devices are read just as if they were ordinary files. If ACTION is skip, devices are silently skipped. If an input file is a directory, use ACTION to process it. By default,ACTION is read, which means that directories are read just as if they were ordinary files. If ACTION is skip, directories are silently skipped.
Interpret PATTERN as a list of fixed strings, separated by newlines, any of which is to be matched. Interpret PATTERN as a Perl regular expression. Obtain patterns from FILE, one per line. The empty file contains zero patterns, and therefore matches nothing. Print the filename for each match. Suppress the prefixing of filenames on output when multiple files are searched. Ignore case distinctions in both the PATTERN and the input files.
The scanning will stop on the first match. Stop reading a file after NUM matching lines. If the input is standard input from a regular file, and NUM matching lines are output, grep ensures that the standard input is positioned to just after the last matching line before exiting, regardless of the presence of trailing context lines. This enables a calling process to resume a search.