Answers for "grep before and after"

1

grep before and after

grep -B 5 -A 2 --color 'keyword' /path/to/file.log
Posted by: Guest on June-18-2021
1

grep show lines above and below

grep -C 3 foo README.txt
Posted by: Guest on June-28-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language