On 2010-08-02, Zhang Weiwu <zhangwe...@realss.com> wrote: > > however, it does not match the following: > > select * from mytable where id=1 > and name='foo'"; >
How about sed -n '{/id=1/N;/name=.foo/p;d;}' -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/slrni6b05b.ada.ala...@archduke.router