grep command parameters

-a Do not ignore binary data.
-A <shows the number of columns> In addition to displaying the line in line with the template pattern outside, and then display the contents of the row.
-b display rows that match that style templates outside, and displays the contents of the previous line.
-c calculated in line with the number of columns template style.
-C <shows the number of columns> or - <Display Sequence>   In addition to displaying the template in line with the row outside the pattern, and displays the contents of the column before.
-d <perform action> When you're looking for is a specified directory instead of a file, you must use this parameter, otherwise the grep command will return information and stop action.
-e <style templates> specifies the string as the file contents to find the template style.
-E the template style for the general representation extends to the use of means that can use extended regular expressions.
-f <template file> specify a template file, the contents of one or more template styles, so grep to find content template files that meet the conditions of the format template styles for each column.
-F will be treated as a template style list of fixed strings.
-G will be treated as ordinary template style notation to use.
-h before displaying the row in line with the template styles, do not indicate the file name of the column belongs.
-H before displaying the row in line with the template style, marked the file name of the column.
-i Ignore character case differences.
-l lists the contents of the documents that match the specified template style file names.
-L lists the contents of the file does not comply with the file name specified in the template style.
-nBefore displaying the row in line with the style of the template, mark the number of the column.
-q does not display any information.
-R / -r effect of this parameter is specified and "-d recurse" the same parameters.
-s does not display an error message.
-v reverse lookup.
- w display only in line with the whole-word column.
-x show only matching column full column.
-y this effect with the parameter "-i" the same.
-o only a subset of the matched file.

Guess you like

Origin www.cnblogs.com/l999999999/p/12163373.html