A. Khattri wrote:
Err... what were you saying about perl being hard...?
You can add other error checking, but here's the jist of it in perl
escaped for usage in a shell
perl -e "
map {
s/^[ \t]*//;
printf \"Last: %s\\n\", (split(/:/,\$_))[1] if /Last Price/;
printf \"L/H : %s\\n\", (sp
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
A. Khattri wrote:
>On Tue, 20 Sep 2005, Ow Mun Heng wrote:
>
>>Remember my script that sends out HTML emails? Well, that's done, but
>>it's in-efficient.
>>
>>The actual script that parses screen-scrapes. Initial script only went
>>to get the "Last Pr
On Tue, 20 Sep 2005, Ow Mun Heng wrote:
> Remember my script that sends out HTML emails? Well, that's done, but
> it's in-efficient.
>
> The actual script that parses screen-scrapes. Initial script only went
> to get the "Last Price" now, I would like to add the "Day Range"
>
> last_price()
> {
>
On Tue, 2005-09-20 at 13:56 +0800, Ow Mun Heng wrote:
> Remember my script that sends out HTML emails? Well, that's done, but
> it's in-efficient.
>
> The actual script that parses screen-scrapes. Initial script only went
> to get the "Last Price" now, I would like to add the "Day Range"
>
> las
Remember my script that sends out HTML emails? Well, that's done, but
it's in-efficient.
The actual script that parses screen-scrapes. Initial script only went
to get the "Last Price" now, I would like to add the "Day Range"
last_price()
{
value="$(lynx -dump "$url$symbol" | grep 'Last price:' |
5 matches
Mail list logo