grep: add line number

waldyrious/alt-syntax
Antonio 2016-01-05 00:30:21 -05:00
parent 0c373e9db7
commit b0adce01cb
1 changed files with 4 additions and 0 deletions

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}}`