I am an AIX admin. I have sar creating a summary file which created the text below. I would like to create a report from the file suitable for display in html format with anchor tags for each section. I have tried the following but the format is unacceptable.
_____________________________________________ #!/usr/bin/perl # # open (SAR,">/usr/local/htdocs/SAR/sar.out.html"); while (<>) { print SAR $_,"\n<br>" ; } _____________________________________________ The file is in this format : ------------------------------------- AIX beips88 2 5 000C79AF4C00 04/27/05 System Configuration: lcpu=6 11:30:42 %usr %sys %wio %idle 13:19:00 0 0 0 100 14:19:00 0 0 0 100 15:19:01 0 0 0 100 16:19:00 0 0 0 100 17:19:00 0 0 0 100 Average 0 0 0 100 System Configuration: lcpu=6 11:30:42 bread/s lread/s %rcache bwrit/s lwrit/s %wcache pread/s pwrit +/s 13:19:00 0 0 0 0 0 0 0 + 0 14:19:00 0 0 0 0 0 0 0 + 0 15:19:01 0 0 0 0 0 0 0 + 0 16:19:00 0 0 0 0 0 0 0 + 0 17:19:00 0 0 0 0 0 0 0 + 0 Average 0 0 0 0 0 0 0 + 0 System Configuration: lcpu=6 11:30:42 scall/s sread/s swrit/s fork/s exec/s rchar/s wchar/s 13:19:00 73 8 3 0.22 0.26 8646 643 14:19:00 17 3 1 0.02 0.01 1552 31 15:19:01 29 4 2 0.05 0.05 6839 194 16:19:00 27 5 2 0.03 0.03 2390 157 17:19:00 11 2 0 0.00 0.00 1124 3 Average 25 4 1 0.04 0.04 3412 138 System Configuration: lcpu=6 11:30:42 cswch/s 13:19:00 59 14:19:00 54 15:19:01 58 16:19:00 59 17:19:00 54 Average 57 System Configuration: lcpu=6 11:30:42 rawch/s canch/s outch/s rcvin/s xmtin/s mdmin/s 13:19:00 1 0 6 0 0 0 14:19:00 0 0 4 0 0 0 15:19:01 1 0 12 0 0 0 16:19:00 1 0 20 0 0 0 17:19:00 0 0 0 0 0 0 Average 0 0 9 0 0 0 System Configuration: lcpu=6 11:30:42 iget/s lookuppn/s dirblk/s 13:19:00 0 7 1 14:19:00 0 1 0 15:19:01 0 2 0 16:19:00 0 1 0 17:19:00 0 1 0 Average 0 2 0 System Configuration: lcpu=6 11:30:42 runq-sz %runocc swpq-sz %swpocc 13:19:00 1.3 1 1.0 0 14:19:00 1.0 0 1.0 0 15:19:01 1.0 0 1.1 0 16:19:00 1.1 0 1.0 0 17:19:00 1.0 0 Average 1.2 0 1.0 0 System Configuration: 11:30:42 proc-sz inod-sz file-sz thrd-sz 13:19:00 66/262144 350/3018 424/511 200/524288 14:19:00 72/262144 355/3413 438/511 206/524288 15:19:01 72/262144 357/3479 441/511 206/524288 16:19:00 68/262144 350/3523 425/511 202/524288 17:19:00 68/262144 350/3526 425/511 202/524288 System Configuration: lcpu=6 11:30:42 msg/s sema/s 13:19:00 0.05 0.00 14:19:00 0.01 0.00 15:19:01 0.01 0.00 16:19:00 0.01 0.00 17:19:00 0.01 0.00 Average 0.01 0.00 ----------------------------
Thanks in advance

In reply to Display Results by aixmike

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.