1

Print all lines before first match

view story
linux-howto

http://www.unix.com – Hi, I have this file. Code: close block3c block3b block3a open close block2b block2a open close block1a open and I need : Code: open block3a block3b block3c close I think that it could be done with sed, but does anyone can help me with that? Thanks (HowTos)