On 12:14 20 May 2002, Flavien <[EMAIL PROTECTED]> wrote:
| Cameron Simpson wrote :
| > How about this script:
| >     detab ${1+"$@"} \
| >     | sed 's|\(<[Aa] [^>]*[Hh][Rr][Ee][Ff]=\([^ 
|>]*\)[^>]*>\)\(.*\)\(</[Aa]>\)|\1\3 [ \2 ]\4|g' \
| >     | w3m -dump -T text/html
| 
| sed has "case Insensitive" option : 'i', thus you don't need all the
| [Hh][Rr][Ee][Ff] thing. You can write it this way :
| sed 's|\(<A [^>]*HREF=\([^ >]*\)[^>]*>\)\(.*\)\(</A>\)|\1\3 [ \2 ]\4|gi'

No. _GNU_ sed has that option. I use more varied systems than GNU based UNIX
variants and write portable sed scripts, not GNU specific dialects.
--
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

My venus fly trap is higher up the food chain than I am.
        - [EMAIL PROTECTED] (Simon Klyne)

Reply via email to