shell problem: how to "grep" in this case?# Unix - 噫吁兮,危乎高哉
r*b
1 楼
Suppose I have a text file like this:
.
.
.
keyword1
......
keyword2
.
.
.
keyword1
......
keyword2
.
.
.
How to print lines containing "keyword1", "keyword2" and in between?
.
.
.
keyword1
......
keyword2
.
.
.
keyword1
......
keyword2
.
.
.
How to print lines containing "keyword1", "keyword2" and in between?