DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
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
Source by unix.stackexchange.com #
PREVIOUS
NEXT
Tagged:
#grep
#lines
#patterns
#unix
ADD COMMENT
Topic
COMMENT
Name
1+6 =
Submit