changeset 64946:4fc385f4c685

Add examples of CVS grep. Add examples of starting and finishing messages.
author Juri Linkov <juri@jurta.org>
date Sun, 14 Aug 2005 06:56:23 +0000
parents 7a6aa8277fe1
children 803494c7e4b7
files etc/grep.txt
diffstat 1 files changed, 15 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/etc/grep.txt	Sun Aug 14 06:55:35 2005 +0000
+++ b/etc/grep.txt	Sun Aug 14 06:56:23 2005 +0000
@@ -19,11 +19,19 @@
 grep -nH --color=always -e "INFO tree" ../info/*
 ../info/dir:6:File: dir	Node: Top	This is the top of the INFO tree
 
-* GNU grep 2.5.1-cvs with specified minimal colors
+* GNU grep 2.5.1-cvs with the specified matching color
 
 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 INFO tree
 
+* 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/*
+../info/dir:6:File: dir	Node: Top	This is the top of the INFO tree
+1:2:3:4:text
+1:2:3:4:text
+1:2:3:4:text
+
 * GNU grep 2.5.1-cvs with default colors
 
 grep -nH --color=always -e "INFO tree" ../info/*
@@ -50,10 +58,14 @@
 
 * GNU grep 2.5.1: other messages
 
+Grep started at Tue Jul 19 15:41:30
 grep: ../info/dirinfo: No such file or directory
-Grep exited abnormally with code 2 at Tue Jul 19 15:42:32
+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
 Grep finished with no matches found at Tue Jul 19 15:43:12
-Grep finished (matches found) at Tue Jul 19 15:45:15
+Grep finished (matches found) at Thu Jul 21 15:02:15
 
 * agrep