aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2005-08-14 06:56:23 +0000
committerJuri Linkov2005-08-14 06:56:23 +0000
commit05d9618303a619a5f6c91ff2697063e93dbc91c9 (patch)
tree3e2019a749f3b8ab0a90c6c5db38e6526af25399
parentff452477b675bc969d1b34a9646836140946ee77 (diff)
downloademacs-05d9618303a619a5f6c91ff2697063e93dbc91c9.tar.gz
emacs-05d9618303a619a5f6c91ff2697063e93dbc91c9.zip
Add examples of CVS grep.
Add examples of starting and finishing messages.
-rw-r--r--etc/grep.txt18
1 files changed, 15 insertions, 3 deletions
diff --git a/etc/grep.txt b/etc/grep.txt
index 4149f80b203..8acfc4fc644 100644
--- a/etc/grep.txt
+++ b/etc/grep.txt
@@ -19,11 +19,19 @@ grep -nH -e "INFO tree" ../info/*
19grep -nH --color=always -e "INFO tree" ../info/* 19grep -nH --color=always -e "INFO tree" ../info/*
20../info/dir:6:File: dir Node: Top This is the top of the INFO tree 20../info/dir:6:File: dir Node: Top This is the top of the INFO tree
21 21
22* GNU grep 2.5.1-cvs with specified minimal colors 22* GNU grep 2.5.1-cvs with the specified matching color
23 23
24GREP_COLORS='mt=01;31:fn=:ln=:bn=:se=:ml=:cx=:ne' grep -nH --color=always -e "INFO tree" ../info/* 24GREP_COLORS='mt=01;31:fn=:ln=:bn=:se=:ml=:cx=:ne' grep -nH --color=always -e "INFO tree" ../info/*
25../info/dir:6:File: dir Node: Top This is the top of the INFO tree 25../info/dir:6:File: dir Node: Top This is the top of the INFO tree
26 26
27* GNU grep 2.5.1-cvs with colors for the file name, line number and match
28
29GREP_COLORS='mt=01;31:fn=35:ln=32:bn=:se=:ml=36:cx=37:ne' grep -nH --color=always -e "INFO tree" ../info/*
30../info/dir:6:File: dir Node: Top This is the top of the INFO tree
311:2:3:4:text
321:2:3:4:text
331:2:3:4:text
34
27* GNU grep 2.5.1-cvs with default colors 35* GNU grep 2.5.1-cvs with default colors
28 36
29grep -nH --color=always -e "INFO tree" ../info/* 37grep -nH --color=always -e "INFO tree" ../info/*
@@ -50,10 +58,14 @@ Binary file 2005-06 matches
50 58
51* GNU grep 2.5.1: other messages 59* GNU grep 2.5.1: other messages
52 60
61Grep started at Tue Jul 19 15:41:30
53grep: ../info/dirinfo: No such file or directory 62grep: ../info/dirinfo: No such file or directory
54Grep exited abnormally with code 2 at Tue Jul 19 15:42:32 63Grep interrupt at Tue Jul 19 15:42:31
64Grep killed at Tue Jul 19 15:42:31
65Grep terminated at Tue Jul 19 15:42:31
66Grep exited abnormally with code 2 at Tue Jul 19 15:42:31
55Grep finished with no matches found at Tue Jul 19 15:43:12 67Grep finished with no matches found at Tue Jul 19 15:43:12
56Grep finished (matches found) at Tue Jul 19 15:45:15 68Grep finished (matches found) at Thu Jul 21 15:02:15
57 69
58* agrep 70* agrep
59 71