That's pretty cool. Works perfectly :)





On 10/27/2010 2:43 PM, Mike Miller wrote:
> On Wed, 27 Oct 2010, Raymond Norton wrote:
>
>> The file does not exist yet ( I will use the existing file for 
>> testing), but I imagine the headings will appear like this:
>>
>> COUNCIL MEMBER SEAT 1 CITY OF HUTCHINSON
>>
>> and
>>
>> COUNTY SHERIFF
>>
>> The refresh can be taken care of with the following:
>>
>> <meta http-equiv="refresh" content="5" >
>
>
> The attached bash script, as currently written, grabs the HTML file, 
> filters it through a perl regexp search/replace filter and produces 
> the following output.  See instructions on how to fix it for your 
> particular job.  We don't know exactly the format of the file right 
> now, so I give a couple of guesses.  The input uses Windows text 
> (carriage-return, newline pairs at ends of lines, so the script 
> retains that).
>
>
> <html>
> <meta http-equiv="refresh" content="5" >
>
> <PRE>
> PRECINCT REPORT       MCLEOD COUNTY, MINNESOTA         UNOFFICIAL RESULTS
> RUN DATE:11/06/08     GENERAL ELECTION
> RUN TIME:12:06 PM     NOVEMBER 4, 2008
>
>           COUNCIL MEMBER SEAT 3 CITY OF HUTCHINSON
>           VOTE FOR UP TO  1
>            ERIC YOST  .  .  .  .  .  .  .  .  .  .  .   1311   50.68
>            MARY CHRISTENSEN .  .  .  .  .  .  .  .  .   1270   49.09
>            WRITE-IN.  .  .  .  .  .  .  .  .  .  .  .      6     .23
>
>           JUDGE 28 1ST DISTRICT COURT
>           VOTE FOR UP TO  1
>            KAREN ASPHAUG .  .  .  .  .  .  .  .  .  .   1841   99.46
>            WRITE-IN.  .  .  .  .  .  .  .  .  .  .  .     10     .54
>
> </pre>
> </html>
>
>
> Best,
> Mike
>
>
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20101027/ad4fe911/attachment.htm