Merge pull request #941 from thalesmello/master
Make extended regular expressions clearer
This commit is contained in:
@@ -15,9 +15,9 @@
|
|||||||
|
|
||||||
`grep -rI {{search_string}} .`
|
`grep -rI {{search_string}} .`
|
||||||
|
|
||||||
- Use a regular expression (`-E` for extended regex, supporting `?`, `+`, `{}`, `()` and `|`):
|
- Use extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`):
|
||||||
|
|
||||||
`grep -e {{^regex$}} {{path/to/file}}`
|
`grep -E {{^regex$}} {{path/to/file}}`
|
||||||
|
|
||||||
- Print 3 lines of context around each match:
|
- Print 3 lines of context around each match:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user