![grep options not pattern grep options not pattern](https://opensource.com/sites/default/files/lead-images/yearbook-haff-rx-linux-file-lead_0.png)
If ACTION is skip, devices are silently skipped. By default, ACTION is read, which means that devices are read just as if they were ordinary files.
![grep options not pattern grep options not pattern](https://www.computernetworkingnotes.org/images/linux/rhce-study-guide/rsg14-01-search-sentence.png)
D ACTION, -devices=ACTION If an input file is a device, FIFO or socket, use ACTION to process it. If the action is set to 'skip', devices will be silently skipped. The default action is 'read', which means, that they are read as if they were normal files.
![grep options not pattern grep options not pattern](https://phoenixnap.com/kb/wp-content/uploads/2021/04/comparison-with-the-x-operator-in-grep-command.png)
Specify the demanded action for devices, FIFOs and sockets. The deprecated environment variable GREP_COLOR is still supported, but its setting does not have priority. The colors are defined by the environment variable GREP_COLORS. color, -colour Surround the matched (non-empty) strings, matching lines, context lines, file names, line numbers, byte offsets, and separators (for fields and groups of context lines) with escape sequences to display them in color on the terminal. The possible values of when can be 'never', 'always' or 'auto'. Mark up the matching text with the expression stored in GREP_COLOR environment variable. With the -v, -invert-match option (see below), count non-matching lines. c, -count Suppress normal output instead print a count of matching lines for each input file. Only a count of selected lines is written to standard output. With the -o or -only-matching option, this has no effect and a warning is given. Places a line containing a group separator (-) between contiguous groups of matches. C NUM, -NUM, -context=NUM Print NUM lines of output context. The default is 2 and is equivalent to -A 2 -B 2. Print num lines of leading and trailing context surrounding each match. If -o ( -only-matching) is specified, print the offset of the matching part itself. b, -byte-offset Print the 0-based byte offset within the input file before each line of output. The offset in bytes of a matched pattern is displayed in front of the respective matched line. B NUM, -before-context=NUM Print NUM lines of leading context before matching lines. Print num lines of leading context before each match. a, -text Process a binary file as if it were text this is equivalent to the -binary-files=text option. A NUM, -after-context=NUM Print NUM lines of trailing context after matching lines. Print num lines of trailing context after each match.