Re: [gentoo-user] Bash + Awk + variable assignation.

2005-09-20 Thread Billy Holmes
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

Re: [gentoo-user] Bash + Awk + variable assignation.

2005-09-20 Thread gentuxx
-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

Re: [gentoo-user] Bash + Awk + variable assignation.

2005-09-20 Thread A. Khattri
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() > { >

Re: [gentoo-user] Bash + Awk + variable assignation.

2005-09-20 Thread Jeff Alge
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

[gentoo-user] Bash + Awk + variable assignation.

2005-09-19 Thread Ow Mun Heng
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:' |