From: "rob pike, esq." <rob@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] How about some software?
Date: Mon, 17 Jun 2002 12:56:31 -0400 [thread overview]
Message-ID: <82708d438b9ead33a3ee6a93255cb66e@plan9.bell-labs.com> (raw)
here's the plumbing rule:
# cheap html to text renderer
type is text
data matches '(https?|ftp|file|gopher|mailto|news|nntp|telnet|wais|prospero)://[a-zA-Z0-9_@\-]+([.:][a-zA-Z0-9_@\-]+)*/?[a-zA-Z0-9_?,%#~&/\-+=]+([:.][a-zA-Z0-9_?,%#~&/\-+=]+)*'
plumb start wurl2txt $0
here's wurl2txt:
#!/bin/rc
switch($#*){
case 0
exit
case 1
name = /`{echo $1 | sed 's;.*//;;
s;/.*;;'}^/webpage
# send hget errors to 2 so they appear in window
hget $1 >[2=1]| {echo $1; echo; htmlfmt} >[2=1] | plumb -i -d edit -a 'action=showdata filename='$name
exit
case *
for(i in *)
wurl2txt $i
}
next reply other threads:[~2002-06-17 16:56 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-17 16:56 rob pike, esq. [this message]
2002-06-17 17:25 ` Micah Stetson
-- strict thread matches above, loose matches on Subject: below --
2002-06-19 4:40 okamoto
2002-06-19 4:36 rob pike, esq.
2002-06-19 4:31 okamoto
2002-06-19 4:22 rob pike, esq.
2002-06-21 10:08 ` peter a. cejchan
2002-06-19 4:00 okamoto
2002-06-19 2:46 rob pike, esq.
2002-06-19 2:45 rob pike, esq.
2002-06-18 17:05 Russ Cox
2002-06-17 18:35 rog
2002-06-17 18:17 rog
2002-06-17 16:51 andrey mirtchovski
2002-06-17 16:42 rob pike, esq.
2002-06-18 17:01 ` FJ Ballesteros
2002-06-17 13:40 rob pike, esq.
2002-06-17 15:58 ` Sam
2002-06-17 16:35 ` Ronald G Minnich
2002-06-17 18:53 ` Christopher Nielsen
2002-06-17 9:20 Ben
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=82708d438b9ead33a3ee6a93255cb66e@plan9.bell-labs.com \
--to=rob@plan9.bell-labs.com \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).