lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev TRST & lynxcgi


From: Klaus Weide
Subject: Re: lynx-dev TRST & lynxcgi
Date: Mon, 8 Nov 1999 17:58:45 -0600 (CST)

On Mon, 8 Nov 1999, Philip Webb wrote:

> 991108 Klaus Weide replied to Philip Webb:
> >> sed: command garbled: \
> >> /<[Tt][Aa][Bb][Ll][Ee]/,/<\/[Tt][Aa][Bb][Ll][Ee]/{;\
> >>   :L;\
> >> /<TD/{;\
> >> /<\/TD>/!{;\
> >>    N;\
> >>    bL\
> >>   }
> > Sorry, it seems my sed syntax isn't portable to your sed.
> 
> i DO know something about sed, tho' i'm out of practice;
> it does vary with systems somewhat, i seem to remember.

Try these 2 simple variants, at least, before you give up on it:

#! /bin/sh
lynx -mime_header "$QUERY_STRING" | sed -e 's/<\/\?[Pp]\( [^>]*\)\?>//g'

Should remove <P> and </P> everywhere.

#! /bin/sh
lynx -mime_header "$QUERY_STRING" | \
sed -e "/<[Tt][Aa][Bb][Ll][Ee]/,/<\/[Tt][Aa][Bb][Ll][Ee]/{;\
s/<\/\?[Pp]\( [^>]*\)\?>//g;}"

Should remove <P> and </P> between <TABLE> and </TABLE> (basically
what you did by hand).

   Klaus


reply via email to

[Prev in Thread] Current Thread [Next in Thread]