Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Column wise entry in text table

by mhearse (Hermit)
on Jan 21, 2013 at 20:36 UTC ( #1014514=note: print w/ replies, xml ) Need Help??


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


Comment on Re: Column wise entry in text table
Download Code
Re^2: Column wise entry in text table
by mhearse (Hermit) 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│
    └────────┴─────┘
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014514]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2015-07-06 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls