Commit 4a397e9a authored by Juri Linkov's avatar Juri Linkov

Add example of grep output with context lines.

parent cdf9f986
......@@ -29,16 +29,25 @@ GREP_COLORS='mt=01;31:fn=:ln=:bn=:se=:ml=:cx=:ne' grep -nH --color=always -e "IN
grep -nH --color=always -e "INFO tree" ../info/*
../info/dir:6:File: dir Node: Top This is the top of the INFO tree
* GNU grep 2.5.1 on files recognized as binary
Binary file emacs-7 matches
Binary file 2005-06 matches
* GNU grep 2.5.1 on lines starting with a number and colon
grep -nH -e "Universal Time" ../lispref/*
../lispref/os.texi:1010:0:00 January 1, 1970 UTC (Coordinated Universal Time)
* GNU grep 2.5.1 with context lines
grep -C 2 -nH --color=always -e "INFO tree" ../info/*
../info/dir-4-looking at that node, which is (dir)Top.
../info/dir-5-
../info/dir:6:File: dir Node: Top This is the top of the INFO tree
../info/dir-7-
../info/dir-8-The Info Directory
* GNU grep 2.5.1 on files recognized as binary
Binary file emacs-7 matches
Binary file 2005-06 matches
* GNU grep 2.5.1: other messages
grep: ../info/dirinfo: No such file or directory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment