From: Juri Linkov Date: Tue, 19 Jul 2005 14:09:52 +0000 (+0000) Subject: Add example of grep output with context lines. X-Git-Tag: emacs-pretest-22.0.90~7986 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4a397e9af69faebfa6f0f104c88979c25b5e7582;p=emacs.git Add example of grep output with context lines. --- diff --git a/etc/grep.txt b/etc/grep.txt index 68d2f0c03fa..4149f80b203 100644 --- a/etc/grep.txt +++ b/etc/grep.txt @@ -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