http://www.perlmonks.org?node_id=1014514


in reply to Column wise entry in text table

For text reports, I use either column or w3m to render my reports. w3m is nice because it can render/dump html.
cat <<EOT | column -s : -t > Numeric:Value > 1:one > 2:two > 3:three > 4:four > 5:five > EOT Numeric Value 1 one 2 two 3 three 4 four 5 five

Replies are listed 'Best First'.
Re^2: Column wise entry in text table
by mhearse (Chaplain) on Jan 21, 2013 at 22:07 UTC
    A w3m example:
    cat <<EOT | w3m -T text/html -dump > <html> > <table border=1> > <tr> > <th>Numeric</th> > <th>Value</th> > </tr> > <tr> > <td>1</td> > <td>one</td> > </tr> > <tr> > <td>2</td> > <td>two</td> > </tr> > <tr> > <td>3</td> > <td>three</td> > </tr> > </table> > </html> > EOT
    ┌────────┬─────┐
    │Numeric │Value│
    ├────────┼─────┤
    │1       │one  │
    ├────────┼─────┤
    │2       │two  │
    ├────────┼─────┤
    │3       │three│
    └────────┴─────┘