Process a binary file as if it did not contain matching data this is equivalent to the -binary-files=without-match option. Suppress the prefixing of file names on output when multiple files are searched. Interpret PATTERN as a basic regular expression (see below). The empty file contains zero patterns, and therefore matches nothing. Interpret PATTERN as a Perl regular expression. Interpret PATTERN as a list of fixed strings, separated by newlines, that may be matched. Use PATTERN as the pattern useful to protect patterns beginning with " -". If ACTION is recurse, grep reads all files under each directory, recursively this is equivalent to the -r option. If ACTION is skip, directories are silently skipped. By default, ACTION is read, which means that directories are read as if they were ordinary files. If an input file is a directory, use ACTION to process it. If ACTION is skip, devices are silently skipped. By default, ACTION is read, which means that devices are read as if they were ordinary files. If an input file is a device, FIFO or socket, use ACTION to process it. With the -v, -invert-match option (see below), count non-matching lines. Suppress normal output instead print a count of matching lines for each input file. WHEN may be ' never', ' always', or ' auto' Surround the matching string with the marker find in GREP_COLOR environment variable. Warning: grep -binary-files=text might output binary garbage, which can have nasty side effects if the output is a terminal and if the terminal driver interprets some of it as commands. If TYPE is text, grep processes a binary file as if it were text this is equivalent to the -a option. If TYPE is without-match, grep assumes that a binary file does not match this is equivalent to the -I option. By default, TYPE is binary, and grep normally outputs either a one-line message saying that a binary file matches, or no message if there is no match. If the first few bytes of a file indicate that the file contains binary data, assume that the file is of type TYPE. Print the byte offset in the input file before each line of output. Places a line containing - between contiguous groups of matches. Print NUM lines of leading context before matching lines. Process a binary file as if it were text this is equivalent to the -binary-files=text option. Print NUM lines of trailing context after matching lines.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |