On 2010-08-02, Zhang Weiwu <[email protected]> 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 [email protected] 
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to