diff options
| author | Juri Linkov | 2005-08-14 06:56:23 +0000 |
|---|---|---|
| committer | Juri Linkov | 2005-08-14 06:56:23 +0000 |
| commit | 05d9618303a619a5f6c91ff2697063e93dbc91c9 (patch) | |
| tree | 3e2019a749f3b8ab0a90c6c5db38e6526af25399 | |
| parent | ff452477b675bc969d1b34a9646836140946ee77 (diff) | |
| download | emacs-05d9618303a619a5f6c91ff2697063e93dbc91c9.tar.gz emacs-05d9618303a619a5f6c91ff2697063e93dbc91c9.zip | |
Add examples of CVS grep.
Add examples of starting and finishing messages.
| -rw-r--r-- | etc/grep.txt | 18 |
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/* | |||
| 19 | grep -nH --color=always -e "INFO tree" ../info/* | 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 | 20 | ../info/dir:6:File: dir Node: Top This is the top of the [01;31mINFO tree[00m |
| 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 | ||
| 24 | GREP_COLORS='mt=01;31:fn=:ln=:bn=:se=:ml=:cx=:ne' grep -nH --color=always -e "INFO tree" ../info/* | 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 | 25 | ../info/dir:6:File: dir Node: Top This is the top of the [01;31mINFO tree[m |
| 26 | 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 | |||
| 27 | * GNU grep 2.5.1-cvs with default colors | 35 | * GNU grep 2.5.1-cvs with default colors |
| 28 | 36 | ||
| 29 | grep -nH --color=always -e "INFO tree" ../info/* | 37 | grep -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 | ||
| 61 | Grep started at Tue Jul 19 15:41:30 | ||
| 53 | grep: ../info/dirinfo: No such file or directory | 62 | grep: ../info/dirinfo: No such file or directory |
| 54 | Grep exited abnormally with code 2 at Tue Jul 19 15:42:32 | 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 | ||
| 55 | Grep finished with no matches found at Tue Jul 19 15:43:12 | 67 | Grep finished with no matches found at Tue Jul 19 15:43:12 |
| 56 | Grep finished (matches found) at Tue Jul 19 15:45:15 | 68 | Grep finished (matches found) at Thu Jul 21 15:02:15 |
| 57 | 69 | ||
| 58 | * agrep | 70 | * agrep |
| 59 | 71 | ||