grep: add line numbers on search (#4599)

beep
Mgs. M. Rizqi Fadhlurrahman 2020-10-11 02:46:14 +07:00 committed by GitHub
parent 6e2e4195b6
commit 08216c5397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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: