88155
|
1 * Introduction -*-grep-*-
|
|
2
|
|
3 This shows the different kinds of messages grep recognizes by default and
|
|
4 how they are rendered. It is intended both to help you decide which matchers
|
|
5 you need and as a test of the matchers. Move the mouse over a colored part
|
|
6 to see how much text was actually matched.
|
|
7
|
|
8 Please do not edit this file in grep-mode, it may lose escape
|
|
9 sequences on saving. Visit this file literally for editing.
|
|
10
|
|
11
|
|
12 * GNU grep 2.5.1
|
|
13
|
|
14 grep -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
|
|
19 grep -nH --color=always -e "INFO tree" ../info/*
|
|
20 ../info/dir:6:File: dir Node: Top This is the top of the [01;31mINFO tree[00m
|
|
21
|
|
22 * GNU grep 2.5.1-cvs with the specified matching color
|
|
23
|
|
24 GREP_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 [01;31mINFO tree[m
|
|
26
|
|
27 * GNU grep 2.5.1-cvs with colors for the file name, line number and match
|
|
28
|
|
29 GREP_COLORS='mt=01;31:fn=35:ln=32:bn=:se=:ml=36:cx=37:ne' grep -nH --color=always -e "INFO tree" ../info/*
|
|
30 [35m../info/dir[m:[32m6[m:[36mFile: dir Node: Top This is the top of the [01;31mINFO tree[m
|
|
31 [35m1[m:[32m2[m:[36m3:4:[01;31mtext[m
|
|
32 [35m1:2[m:[32m3[m:[36m4:[01;31mtext[m
|
|
33 [35m1:2:3[m:[32m4[m:[36m[01;31mtext[m
|
|
34
|
|
35 * GNU grep 2.5.1-cvs with default colors
|
|
36
|
|
37 grep -nH --color=always -e "INFO tree" ../info/*
|
|
38 [35m[K../info/dir[m[K[36m[K:[m[K[32m[K6[m[K[36m[K:[m[KFile: dir Node: Top This is the top of the [01;31m[KINFO tree[m[K
|
|
39
|
|
40 * GNU grep 2.5.1 on lines starting with a number and colon
|
|
41
|
|
42 grep -nH -e "Universal Time" ../lispref/*
|
|
43 ../lispref/os.texi:1010:0:00 January 1, 1970 UTC (Coordinated [01;31mUniversal Time[00m)
|
|
44
|
|
45 * GNU grep 2.5.1 with context lines
|
|
46
|
|
47 grep -C 2 -nH --color=always -e "INFO tree" ../info/*
|
|
48 ../info/dir-4-looking at that node, which is (dir)Top.
|
|
49 ../info/dir-5-
|
|
50 ../info/dir:6:File: dir Node: Top This is the top of the [01;31mINFO tree[00m
|
|
51 ../info/dir-7-
|
|
52 ../info/dir-8-The Info Directory
|
|
53
|
|
54 * GNU grep 2.5.1 on files recognized as binary
|
|
55
|
|
56 Binary file emacs-7 matches
|
|
57 Binary file 2005-06 matches
|
|
58
|
|
59 * GNU grep 2.5.1: other messages
|
|
60
|
|
61 Grep started at Tue Jul 19 15:41:30
|
|
62 grep: ../info/dirinfo: No such file or directory
|
|
63 Grep interrupt at Tue Jul 19 15:42:31
|
|
64 Grep killed at Tue Jul 19 15:42:31
|
|
65 Grep terminated at Tue Jul 19 15:42:31
|
|
66 Grep exited abnormally with code 2 at Tue Jul 19 15:42:31
|
|
67 Grep finished with no matches found at Tue Jul 19 15:43:12
|
|
68 Grep finished (matches found) at Thu Jul 21 15:02:15
|
|
69
|
|
70 * agrep
|
|
71
|
|
72 agrep -n "INFO tree" ../info/*
|
|
73 ../info/dir: 6: File: dir Node: Top This is the top of the INFO tree
|
|
74
|
|
75 * unknown greps
|
|
76
|
|
77 grep -nH -e "xyzxyz" ../info/*
|
|
78 ../info/emacs-2:1205:10:inserts `xyzxyzxyzxyz' in the current buffer.
|
|
79 ../info/emacs-2:1205:10-15:inserts `xyzxyzxyzxyz' in the current buffer.
|
|
80 ../info/emacs-2:1205.10-1205.15:inserts `xyzxyzxyzxyz' in the current buffer.
|
|
81 ../info/emacs-2 1205.10-15 inserts `xyzxyzxyzxyz' in the current buffer.
|
|
82 ../info/emacs-2 1205.10-1205.15 inserts `xyzxyzxyzxyz' in the current buffer.
|
|
83 ../info/emacs-2 1205 inserts `xyzxyzxyzxyz' in the current buffer.
|
|
84
|
|
85 ;;; Local Variables:
|
|
86 ;;; buffer-read-only: t
|
|
87 ;;; End:
|