Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
grep lines between two patterns in unix
DidoCarthage
Programming language:
Whatever
2021-06-26 03:10:07
0
Q:
grep lines between two patterns in unix
Geek
Code:
Whatever
2021-07-06 12:38:49
$ sed -n '/aaa/,/cdn/p' file aaa b12 cdn $ sed -n '/zdk/,/dke/p' file zdk aaa b12 cdn dke
0
Tags
line
between
two
Related
grep first occurence for many matches
grep show lines above and below
grep nth line after match
grep two lines together
grep count lines
find files between two times
New to Communities?
Join the community