Grep under standard unix / linux controlling the following parameters context
grep -C 5 show file foo document file foo string matching the line and the vertical line 5
grep display file foo foo -B 5 and the first five rows
grep -A 5 foo file foo display and after 5 lines
to see the version number of grep is to
grep -V
suppose you want to upgrade, upgrade method: the latest source code (google or Baidu search home page), compile and install somewhere, such as / home / aaa / bin / time then after use to use / home / aaa / bin / grep , or the / home / aaa / bin will be added to the PATH environment variable. Suppose you compiled the latest coverage grep grep to you now the folder where the upgrade is complete natural
Grep under standard unix / linux controlling the following parameters context
grep -C 5 show file foo document file foo string matching the line and the vertical line 5
grep display file foo foo -B 5 and the first five rows
grep -A 5 foo file foo display and after 5 lines
to see the version number of grep is to
grep -V
suppose you want to upgrade, upgrade method: the latest source code (google or Baidu search home page), compile and install somewhere, such as / home / aaa / bin / time then after use to use / home / aaa / bin / grep , or the / home / aaa / bin will be added to the PATH environment variable. Suppose you compiled the latest coverage grep grep to you now the folder where the upgrade is complete natural