Bash and grep: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=== Common grep switches === Show line number of match <pre> grep -n <string> <file(s)> </pre> Insensitive match <pre> grep -i <string> <file(s)> </pre> Before and after # lines from match <pre> grep -A# -B# <string> <file(s)> </pre> Category:Bash") |
(No difference)
|
Revision as of 09:44, 27 May 2023
Common grep switches
Show line number of match
grep -n <string> <file(s)>
Insensitive match
grep -i <string> <file(s)>
Before and after # lines from match
grep -A# -B# <string> <file(s)>