Darren Wyn Rees <merlin(_at_)netlink(_dot_)co(_dot_)uk> writes:
On Sat, Apr 01, 2000 at 10:41:39AM -0600, David W. Tamkin wrote:
Otherwise, you can use sed:
:0bfi
* pattern
| sed -n '/pattern/q' -ep
#| sed '/pattern/q' # instead of above if pattern should be kept
The above syntax doesn't work with my sed (GNU v.3.02).
I'm working through your suggestions. Thanks for offering them.
You need two -e flags, one for two line of the sed program:
:0 bfi
* pattern
| sed -n -e '/pattern/q' -e p
Philip Guenther