Answers for "grep lines between two patterns in unix"

0

grep lines between two patterns in unix

$ sed -n '/aaa/,/cdn/p' file
aaa
b12
cdn
$ sed -n '/zdk/,/dke/p' file
zdk
aaa
b12
cdn
dke
Posted by: Guest on June-18-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language