aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJuri Linkov2005-07-19 14:09:52 +0000
committerJuri Linkov2005-07-19 14:09:52 +0000
commit4a397e9af69faebfa6f0f104c88979c25b5e7582 (patch)
tree8c7798e8f4e1c9933f6112f6163eeba2620dd403 /etc
parentcdf9f9860bfd5bd0eda5a60ab4a07874251d80ee (diff)
downloademacs-4a397e9af69faebfa6f0f104c88979c25b5e7582.tar.gz
emacs-4a397e9af69faebfa6f0f104c88979c25b5e7582.zip
Add example of grep output with context lines.
Diffstat (limited to 'etc')
-rw-r--r--etc/grep.txt19
1 files changed, 14 insertions, 5 deletions
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
29grep -nH --color=always -e "INFO tree" ../info/* 29grep -nH --color=always -e "INFO tree" ../info/*
30../info/dir:6:File: dir Node: Top This is the top of the INFO tree 30../info/dir:6:File: dir Node: Top This is the top of the INFO tree
31 31
32* GNU grep 2.5.1 on files recognized as binary
33
34Binary file emacs-7 matches
35Binary file 2005-06 matches
36
37* GNU grep 2.5.1 on lines starting with a number and colon 32* GNU grep 2.5.1 on lines starting with a number and colon
38 33
39grep -nH -e "Universal Time" ../lispref/* 34grep -nH -e "Universal Time" ../lispref/*
40../lispref/os.texi:1010:0:00 January 1, 1970 UTC (Coordinated Universal Time) 35../lispref/os.texi:1010:0:00 January 1, 1970 UTC (Coordinated Universal Time)
41 36
37* GNU grep 2.5.1 with context lines
38
39grep -C 2 -nH --color=always -e "INFO tree" ../info/*
40../info/dir-4-looking at that node, which is (dir)Top.
41../info/dir-5-
42../info/dir:6:File: dir Node: Top This is the top of the INFO tree
43../info/dir-7-
44../info/dir-8-The Info Directory
45
46* GNU grep 2.5.1 on files recognized as binary
47
48Binary file emacs-7 matches
49Binary file 2005-06 matches
50
42* GNU grep 2.5.1: other messages 51* GNU grep 2.5.1: other messages
43 52
44grep: ../info/dirinfo: No such file or directory 53grep: ../info/dirinfo: No such file or directory