Re: scripting an interactive web page

"Voytek Eymont" <[email protected]> Mon, 12 Apr 2010 23:51:11 +1000 (EST)
Newsgroups gmane.org.user-groups.slug.chat
Message-ID <[email protected]>
On Mon, April 12, 2010 5:36 pm, Daniel Pittman wrote:
> "Voytek Eymont" <[email protected]> writes:

>> how can I get rid of all lines starting with ' INT' ?
>
> The GNU Awk documentation should be helpful in solving this sort of
> problem generically, for the future:
> http://www.gnu.org/manual/gawk/gawk.html

> (Also, if awk doesn't cut it, Perl, Python, and Ruby all have reasonable
> support for more complex versions of the same.)

> My approach would be to reconsider how I was getting the input and see if
>  I could improve pre-processing by, for example, parsing the HTML and
> emitting the content I actually wanted.
>
> Alternately, you could just avoid printing any line that matched that
> pattern, but I suspect this won't be the last additional requirement you
> find...

Daniel, thanks

I get a page with one or more items, each items has several lines, one
line in each item is definitely unneeded, so I guess 'avoid the match'
will be the go

links -dump crc.html > a.txt
awk '$1 !~ /(^$)/' a.txt  > a.ful
awk '/Page/, /References/  { print }' a.ful  > a

yes, I'm now thinking 'if I could make a vcal file out of this, that would
be even nicer...'

are you aware of any tools to convert to 'Title Case' ?
I see plenty options to convert upper/lower case, but haven't found any
for Title Case



-- 
Voytek

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html