Quote:
Originally Posted by prsshini
Hi
I m sorry for not being clear.. Its like
I want line from XXX till the line before next xxx..
say if
xxx
1
2
3
4
xxx,
i want the lines from first xxx till line4.
Could you please help. Thanks a lot.
|
Try this:
Code:
awk 'p && /xxx/{exit} /xxx/{p=1}p' file