1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 19:55:27 +02:00

grep: remove 2 examples (#1750)

* grep: remove 2 examples

Make the page conform to our maximum limit of 8 examples

Fixes #1695

* Address review comments
This commit is contained in:
Agniva De Sarker 2017-12-07 08:53:40 +05:30 committed by GitHub
parent 5aec7fcc9c
commit 3b0383d075
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,17 +23,9 @@
`grep -{{C|B|A}} 3 {{search_string}} {{path/to/file}}`
- Print the count of matches instead of the matching text:
- Print file name with the corresponding line number for each match:
`grep -c {{search_string}} {{path/to/file}}`
- Print line number for each match:
`grep -n {{search_string}} {{path/to/file}}`
- Print file names with matches:
`grep -l {{search_string}} {{path/to/file}}`
`grep -Hn {{search_string}} {{path/to/file}}`
- Use the standard input instead of a file: