Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You'll very likely want to make the HTML prettier by using a CSS stylesheet or adding borders to the table, but here's a simple start.</p> <pre><code>#!/usr/bin/perl use strict; use warnings; my $output = `cat dat`; my @lines = split /\n/, $output; my @data; foreach my $line (@lines) { chomp $line; my @d = split /\s+/, $line; push @data, \@d; } print &lt;&lt;HEADER; &lt;html&gt; &lt;table&gt; HEADER foreach my $d (@data) { print "\t", "&lt;tr&gt;"; print map { "&lt;td&gt;$_&lt;/td&gt;" } @$d; print "&lt;/tr&gt;", "\n"; } print &lt;&lt;FOOTER; &lt;/table&gt; &lt;/html&gt; FOOTER </code></pre> <p>This makes the following output:</p> <pre><code>&lt;html&gt; &lt;table&gt; &lt;tr&gt;&lt;td&gt;10.255.202.1&lt;/td&gt;&lt;td&gt;2472327594&lt;/td&gt;&lt;td&gt;1720341&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;10.255.202.21&lt;/td&gt;&lt;td&gt;2161941840&lt;/td&gt;&lt;td&gt;1484352&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;10.255.200.0&lt;/td&gt;&lt;td&gt;1642646268&lt;/td&gt;&lt;td&gt;1163742&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;10.255.200.96&lt;/td&gt;&lt;td&gt;1489876452&lt;/td&gt;&lt;td&gt;1023546&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;10.255.200.26&lt;/td&gt;&lt;td&gt;1289738466&lt;/td&gt;&lt;td&gt;927513&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;10.255.202.18&lt;/td&gt;&lt;td&gt;1028316222&lt;/td&gt;&lt;td&gt;706959&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;10.255.200.36&lt;/td&gt;&lt;td&gt;955477836&lt;/td&gt;&lt;td&gt;703926&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;/html&gt; </code></pre> <p>To understand how to modify the look of your HTML tables, the <a href="http://www.w3schools.com/tags/tag_table.asp" rel="nofollow noreferrer">w3schools website entry on the table tag</a> is a good start. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload