You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: gnu_grep.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,10 @@
47
47
48
48
<br>
49
49
50
+
This chapter has also been [converted to a book](https://github.com/learnbyexample/learn_gnugrep_ripgrep) with additional examples, exercises and covers popular alternative `ripgrep`
51
+
52
+
<br>
53
+
50
54
```bash
51
55
$ grep -V | head -1
52
56
grep (GNU grep) 2.25
@@ -245,6 +249,8 @@ sugar
245
249
246
250
* Word search using `-w` option
247
251
* word constitutes of alphabets, numbers and underscore character
252
+
* This will ensure that given patterns are not surrounded by other word characters
253
+
* this is slightly different than using word boundaries in regular expressions
248
254
* For example, this helps to distinguish `par` from `spar`, `part`, etc
249
255
250
256
```bash
@@ -285,6 +291,7 @@ car
285
291
* `never` explicitly specify no highlighting
286
292
287
293
```bash
294
+
$ # can also use grep --color 'blue' as auto is default
0 commit comments