Answers for "grep more lines around"

1

grep more lines around

grep foo -A [line_after]
grep foo -B [line_before]
Posted by: Guest on July-19-2021
1

grep show lines above and below

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

Browse Popular Code Answers by Language