1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-03 21:15:32 +02:00

Merge pull request #594 from antoniom13/update-grep

grep: add line number
This commit is contained in:
Igor Shubovych 2016-01-05 15:55:06 +02:00
commit 17faf11ac7

View file

@ -23,6 +23,10 @@
`grep -c {{something}} {{file_path}}`
- print line number for each match
`grep -n {{something}} {{file_path}}`
- use the standard input instead of a file
`cat {{file_path}} | grep {{something}}`