egrep -rnw . -e "string" returns line and adjacent lines
107892
output neighbouring lines with line numbers while grepping
123412
How to remove newline character between two strings \n in unix?
117459
Emacs copy matching lines
80068
Why is \r a newline for Vim?
88671
How to stop gdalwarp creating world-spanning outputs near the dateline?
100911
How to "grep" for line length in a given range?
101842
How to find line with least characters
28634
Why printf() when printing multiple strings (%s) leaves newline and how to solve this?
95396
Printing unique lines
126483
Why does using array and for loop breaks line into 2?
156055
The error "there is no line to end here" when using \\~\\ or \newline
427
Why does a RegExp with global flag give wrong results?
124336
How to stop Gedit, Gvim, Vim, Nano from adding End-of-File newline char?
47000
What exactly do "u" and "r" string flags do, and what are raw string literals?
73974
Print odd-numbered lines, print even-numbered lines
124370
Inconsistent/incorrect breaks/newlines in lists
36905
Convince grep to output all lines, not just those with matches