From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 24 Jul 2009 07:49:43 +0800 Message-ID: <1d5d51400907231649i3c039eebj45bffcd74e8a6fe6@mail.gmail.com> From: Fernan Bolando To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] Does "as little software as possible" include a modern Topicbox-Message-UUID: 2b494fae-ead5-11e9-9d60-3106f5b1d025 On Thu, Jul 23, 2009 at 6:16 PM, Richard Miller<9fans@hamnavoe.com> wrote: >> although it uses http, twitter has got an api that you can use outside >> a browser. it's much the same with several others, including aws. >> there are reasonably clear descriptions of the messages, and you can con= struct >> and send them however you like, in which ever language you like. > > The 'stock' command (undocumented?) is a good example of this. > (It's a 14-line shell script): > > term% stock goog > "GOOG","Google Inc.",427.69,"7/22/2009",0.00,0 > > I have a similar little script to do currency conversions: > > term% currency usd eur > =A01 US Dollar (USD) =3D 0.70403 Euro (EUR) > term% currency -d 10/30/2000 usd eur > =A01 US Dollar (USD) =3D 1.19046 Euro (EUR) > > which is just a bit of syntactic sugar wrapped around this: > > hget 'http://www.oanda.com/convert/classic?user=3Dprintable&exch=3D'$xout= '&expr=3D'$xin'&value=3D1&date_fmt=3Dus&date=3D'$date | grep '^[ =A0 ]*1 ' > > > now if somebody can create a script to lookup words in dictionary.com preformatted without ads. :) --=20 http://www.fernski.com