mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-31 14:17:56 +01:00
Merge pull request #941 from thalesmello/master
Make extended regular expressions clearer
This commit is contained in:
commit
37d2e6b393
1 changed files with 2 additions and 2 deletions
|
@ -15,9 +15,9 @@
|
|||
|
||||
`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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue