aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2005-07-19 12:57:56 +0000
committerJuri Linkov2005-07-19 12:57:56 +0000
commitcdf9f9860bfd5bd0eda5a60ab4a07874251d80ee (patch)
treef9d57618bbff3d30d8b87b8d5f4a6ca98176786b
parent09cab23d04a9070c0d84b2adb59ae75bb5398274 (diff)
downloademacs-cdf9f9860bfd5bd0eda5a60ab4a07874251d80ee.tar.gz
emacs-cdf9f9860bfd5bd0eda5a60ab4a07874251d80ee.zip
Examples of messages grep recognizes
-rw-r--r--etc/ChangeLog4
-rw-r--r--etc/grep.txt66
2 files changed, 70 insertions, 0 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog
index f4f2aa97feb..8fdb699c50e 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,7 @@
12005-07-19 Juri Linkov <juri@jurta.org>
2
3 * grep.txt: New file.
4
12005-07-19 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 52005-07-19 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2 6
3 * PROBLEMS (Fedora Core 4 GNU/Linux: Segfault during dumping): 7 * PROBLEMS (Fedora Core 4 GNU/Linux: Segfault during dumping):
diff --git a/etc/grep.txt b/etc/grep.txt
new file mode 100644
index 00000000000..68d2f0c03fa
--- /dev/null
+++ b/etc/grep.txt
@@ -0,0 +1,66 @@
1* Introduction -*-grep-*-
2
3This shows the different kinds of messages grep recognizes by default and
4how they are rendered. It is intended both to help you decide which matchers
5you need and as a test of the matchers. Move the mouse over a colored part
6to see how much text was actually matched.
7
8Please do not edit this file in grep-mode, it may lose escape
9sequences on saving. Visit this file literally for editing.
10
11
12* GNU grep 2.5.1
13
14grep -nH -e "INFO tree" ../info/*
15../info/dir:6:File: dir Node: Top This is the top of the INFO tree
16
17* GNU grep 2.5.1 with default colors
18
19grep -nH --color=always -e "INFO tree" ../info/*
20../info/dir:6:File: dir Node: Top This is the top of the INFO tree
21
22* GNU grep 2.5.1-cvs with specified minimal colors
23
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
26
27* GNU grep 2.5.1-cvs with default colors
28
29grep -nH --color=always -e "INFO tree" ../info/*
30../info/dir:6:File: dir Node: Top This is the top of the INFO tree
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
38
39grep -nH -e "Universal Time" ../lispref/*
40../lispref/os.texi:1010:0:00 January 1, 1970 UTC (Coordinated Universal Time)
41
42* GNU grep 2.5.1: other messages
43
44grep: ../info/dirinfo: No such file or directory
45Grep exited abnormally with code 2 at Tue Jul 19 15:42:32
46Grep finished with no matches found at Tue Jul 19 15:43:12
47Grep finished (matches found) at Tue Jul 19 15:45:15
48
49* agrep
50
51agrep -n "INFO tree" ../info/*
52../info/dir: 6: File: dir Node: Top This is the top of the INFO tree
53
54* unknown greps
55
56grep -nH -e "xyzxyz" ../info/*
57../info/emacs-2:1205:10:inserts `xyzxyzxyzxyz' in the current buffer.
58../info/emacs-2:1205:10-15:inserts `xyzxyzxyzxyz' in the current buffer.
59../info/emacs-2:1205.10-1205.15:inserts `xyzxyzxyzxyz' in the current buffer.
60../info/emacs-2 1205.10-15 inserts `xyzxyzxyzxyz' in the current buffer.
61../info/emacs-2 1205.10-1205.15 inserts `xyzxyzxyzxyz' in the current buffer.
62../info/emacs-2 1205 inserts `xyzxyzxyzxyz' in the current buffer.
63
64;;; Local Variables:
65;;; buffer-read-only: t
66;;; End: