diff options
| author | Juri Linkov | 2005-07-19 14:09:52 +0000 |
|---|---|---|
| committer | Juri Linkov | 2005-07-19 14:09:52 +0000 |
| commit | 4a397e9af69faebfa6f0f104c88979c25b5e7582 (patch) | |
| tree | 8c7798e8f4e1c9933f6112f6163eeba2620dd403 /etc | |
| parent | cdf9f9860bfd5bd0eda5a60ab4a07874251d80ee (diff) | |
| download | emacs-4a397e9af69faebfa6f0f104c88979c25b5e7582.tar.gz emacs-4a397e9af69faebfa6f0f104c88979c25b5e7582.zip | |
Add example of grep output with context lines.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/grep.txt | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/etc/grep.txt b/etc/grep.txt index 68d2f0c03fa..4149f80b203 100644 --- a/etc/grep.txt +++ b/etc/grep.txt | |||
| @@ -29,16 +29,25 @@ GREP_COLORS='mt=01;31:fn=:ln=:bn=:se=:ml=:cx=:ne' grep -nH --color=always -e "IN | |||
| 29 | grep -nH --color=always -e "INFO tree" ../info/* | 29 | grep -nH --color=always -e "INFO tree" ../info/* |
| 30 | [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 | 30 | [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 |
| 31 | 31 | ||
| 32 | * GNU grep 2.5.1 on files recognized as binary | ||
| 33 | |||
| 34 | Binary file emacs-7 matches | ||
| 35 | Binary file 2005-06 matches | ||
| 36 | |||
| 37 | * GNU grep 2.5.1 on lines starting with a number and colon | 32 | * GNU grep 2.5.1 on lines starting with a number and colon |
| 38 | 33 | ||
| 39 | grep -nH -e "Universal Time" ../lispref/* | 34 | grep -nH -e "Universal Time" ../lispref/* |
| 40 | ../lispref/os.texi:1010:0:00 January 1, 1970 UTC (Coordinated [01;31mUniversal Time[00m) | 35 | ../lispref/os.texi:1010:0:00 January 1, 1970 UTC (Coordinated [01;31mUniversal Time[00m) |
| 41 | 36 | ||
| 37 | * GNU grep 2.5.1 with context lines | ||
| 38 | |||
| 39 | grep -C 2 -nH --color=always -e "INFO tree" ../info/* | ||
| 40 | ../info/dir-4-looking at that node, which is (dir)Top. | ||
| 41 | ../info/dir-5- | ||
| 42 | ../info/dir:6:File: dir Node: Top This is the top of the [01;31mINFO tree[00m | ||
| 43 | ../info/dir-7- | ||
| 44 | ../info/dir-8-The Info Directory | ||
| 45 | |||
| 46 | * GNU grep 2.5.1 on files recognized as binary | ||
| 47 | |||
| 48 | Binary file emacs-7 matches | ||
| 49 | Binary file 2005-06 matches | ||
| 50 | |||
| 42 | * GNU grep 2.5.1: other messages | 51 | * GNU grep 2.5.1: other messages |
| 43 | 52 | ||
| 44 | grep: ../info/dirinfo: No such file or directory | 53 | grep: ../info/dirinfo: No such file or directory |