mirror of https://github.com/CrimsonTome/tldr.git
grep: add line numbers on search (#4599)
parent
6e2e4195b6
commit
08216c5397
|
@ -11,9 +11,9 @@
|
|||
|
||||
`grep -F {{exact_string}} {{path/to/file}}`
|
||||
|
||||
- Search for a pattern recursively in the current directory, ignoring non-text files:
|
||||
- Search for a pattern [R]ecursively in the current directory, showing matching line [n]umbers, [I]gnoring non-text files:
|
||||
|
||||
`grep -RI {{search_pattern}} .`
|
||||
`grep -RIn {{search_pattern}} .`
|
||||
|
||||
- Use extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode:
|
||||
|
||||
|
|
Loading…
Reference in New Issue