Re: scripting an interactive web page
"Voytek Eymont" <[email protected]> Tue, 13 Apr 2010 22:18:59 +1000 (EST)
| Newsgroups | gmane.org.user-groups.slug.chat |
|---|---|
| Message-ID | <[email protected]> |
On Tue, April 13, 2010 10:05 am, Daniel Pittman wrote: > "Voytek Eymont" <[email protected]> writes: >> links -dump crc.html > a.txt awk '$1 !~ /(^$)/' a.txt > a.ful awk >> '/Page/, /References/ { print }' a.ful > a > ...that works. IIRC, some versions of awk also support the '/Page/ && $1 > ...' > syntax, but I confess that I don't know which â by that point I usually > have Perl in hand. > > >> 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' ? > > perl -n -e 'print ucfirst' > >> I see plenty options to convert upper/lower case, but haven't found any >> for Title Case >> > > Seriously, by that stage I would be treating this as a reason to pick up > a more capable language and use that. For example, there are [iv]Cal > modules for Perl that you can push the data into, and which will emit > correct XML for other applications to consume. > > Much easier than hand-hacking it, then discovery you need to > entity-encode bits, then that you need a CDATA section in the PCDATA, > then... Daniel, thanks again yes, when I was searching for 'vcal', all references I found were pointing to perl vcal classess or libraries I kinda tried to look up some of that vcal perl info, but, didn't understand most of it. I guess I might need to try harder, thanks again for all the help -- Voytek -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html