2006-06-03 13:53:01 +00:00
|
|
|
|
* Introduction -*-grep-*- (See the end of file for copyright information)
|
2005-07-19 12:57:56 +00:00
|
|
|
|
|
|
|
|
|
This shows the different kinds of messages grep recognizes by default and
|
|
|
|
|
how they are rendered. It is intended both to help you decide which matchers
|
|
|
|
|
you need and as a test of the matchers. Move the mouse over a colored part
|
|
|
|
|
to see how much text was actually matched.
|
|
|
|
|
|
|
|
|
|
Please do not edit this file in grep-mode, it may lose escape
|
|
|
|
|
sequences on saving. Visit this file literally for editing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* GNU grep 2.5.1
|
|
|
|
|
|
|
|
|
|
grep -nH -e "INFO tree" ../info/*
|
|
|
|
|
../info/dir:6:File: dir Node: Top This is the top of the INFO tree
|
|
|
|
|
|
|
|
|
|
* GNU grep 2.5.1 with default colors
|
|
|
|
|
|
|
|
|
|
grep -nH --color=always -e "INFO tree" ../info/*
|
|
|
|
|
../info/dir:6:File: dir Node: Top This is the top of the [01;31mINFO tree[00m
|
|
|
|
|
|
2005-08-14 06:56:23 +00:00
|
|
|
|
* GNU grep 2.5.1-cvs with the specified matching color
|
2005-07-19 12:57:56 +00:00
|
|
|
|
|
|
|
|
|
GREP_COLORS='mt=01;31:fn=:ln=:bn=:se=:ml=:cx=:ne' grep -nH --color=always -e "INFO tree" ../info/*
|
|
|
|
|
../info/dir:6:File: dir Node: Top This is the top of the [01;31mINFO tree[m
|
|
|
|
|
|
2005-08-14 06:56:23 +00:00
|
|
|
|
* GNU grep 2.5.1-cvs with colors for the file name, line number and match
|
|
|
|
|
|
|
|
|
|
GREP_COLORS='mt=01;31:fn=35:ln=32:bn=:se=:ml=36:cx=37:ne' grep -nH --color=always -e "INFO tree" ../info/*
|
|
|
|
|
[35m../info/dir[m:[32m6[m:[36mFile: dir Node: Top This is the top of the [01;31mINFO tree[m
|
|
|
|
|
[35m1[m:[32m2[m:[36m3:4:[01;31mtext[m
|
|
|
|
|
[35m1:2[m:[32m3[m:[36m4:[01;31mtext[m
|
|
|
|
|
[35m1:2:3[m:[32m4[m:[36m[01;31mtext[m
|
|
|
|
|
|
2005-07-19 12:57:56 +00:00
|
|
|
|
* GNU grep 2.5.1-cvs with default colors
|
|
|
|
|
|
|
|
|
|
grep -nH --color=always -e "INFO tree" ../info/*
|
|
|
|
|
[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
|
|
|
|
|
|
|
|
|
|
* 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 [01;31mUniversal Time[00m)
|
|
|
|
|
|
2005-07-19 14:09:52 +00:00
|
|
|
|
* 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 [01;31mINFO tree[00m
|
|
|
|
|
../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
|
|
|
|
|
|
2005-07-19 12:57:56 +00:00
|
|
|
|
* GNU grep 2.5.1: other messages
|
|
|
|
|
|
2005-08-14 06:56:23 +00:00
|
|
|
|
Grep started at Tue Jul 19 15:41:30
|
2005-07-19 12:57:56 +00:00
|
|
|
|
grep: ../info/dirinfo: No such file or directory
|
2005-08-14 06:56:23 +00:00
|
|
|
|
Grep interrupt at Tue Jul 19 15:42:31
|
|
|
|
|
Grep killed at Tue Jul 19 15:42:31
|
|
|
|
|
Grep terminated at Tue Jul 19 15:42:31
|
|
|
|
|
Grep exited abnormally with code 2 at Tue Jul 19 15:42:31
|
2005-07-19 12:57:56 +00:00
|
|
|
|
Grep finished with no matches found at Tue Jul 19 15:43:12
|
2005-08-14 06:56:23 +00:00
|
|
|
|
Grep finished (matches found) at Thu Jul 21 15:02:15
|
2005-07-19 12:57:56 +00:00
|
|
|
|
|
|
|
|
|
* agrep
|
|
|
|
|
|
|
|
|
|
agrep -n "INFO tree" ../info/*
|
|
|
|
|
../info/dir: 6: File: dir Node: Top This is the top of the INFO tree
|
|
|
|
|
|
|
|
|
|
* unknown greps
|
|
|
|
|
|
|
|
|
|
grep -nH -e "xyzxyz" ../info/*
|
|
|
|
|
../info/emacs-2:1205:10:inserts `xyzxyzxyzxyz' in the current buffer.
|
|
|
|
|
../info/emacs-2:1205:10-15:inserts `xyzxyzxyzxyz' in the current buffer.
|
|
|
|
|
../info/emacs-2:1205.10-1205.15:inserts `xyzxyzxyzxyz' in the current buffer.
|
|
|
|
|
../info/emacs-2 1205.10-15 inserts `xyzxyzxyzxyz' in the current buffer.
|
|
|
|
|
../info/emacs-2 1205.10-1205.15 inserts `xyzxyzxyzxyz' in the current buffer.
|
|
|
|
|
../info/emacs-2 1205 inserts `xyzxyzxyzxyz' in the current buffer.
|
|
|
|
|
|
2006-06-03 13:53:01 +00:00
|
|
|
|
|
|
|
|
|
|
2011-01-25 04:08:28 +00:00
|
|
|
|
Copyright (C) 2005-2011 Free Software Foundation, Inc.
|
2006-06-03 13:53:01 +00:00
|
|
|
|
|
|
|
|
|
COPYING PERMISSIONS:
|
|
|
|
|
|
2008-05-15 07:32:14 +00:00
|
|
|
|
This document is free software: you can redistribute it and/or modify
|
2006-06-03 13:53:01 +00:00
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2008-05-15 07:32:14 +00:00
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
(at your option) any later version.
|
2006-06-03 13:53:01 +00:00
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2008-05-15 07:32:14 +00:00
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2006-06-03 13:53:01 +00:00
|
|
|
|
|
2006-06-28 13:59:09 +00:00
|
|
|
|
|
|
|
|
|
;;; Local Variables:
|
2011-09-05 08:20:02 +00:00
|
|
|
|
;;; eval: (let ((inhibit-read-only t) (compilation-filter-start (point-min))) (save-excursion (goto-char (point-max)) (grep-filter) (set-buffer-modified-p nil)))
|
2006-06-28 13:59:09 +00:00
|
|
|
|
;;; buffer-read-only: t
|
|
|
|
|
;;; End:
|