![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| awk - list to tables | Lobaria | Shell Programming and Scripting | 10 | 04-24-2008 08:07 AM |
| Converting tables of row data into columns of tables | justthisguy | Shell Programming and Scripting | 7 | 07-16-2007 04:42 PM |
| Routing tables | kingdbag | UNIX for Dummies Questions & Answers | 9 | 10-06-2006 08:01 PM |
| viewing tables | itldp | UNIX for Dummies Questions & Answers | 2 | 12-17-2003 09:19 AM |
| PHP: list into tables | perleo | Shell Programming and Scripting | 2 | 10-01-2003 09:50 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Tables and borders
when i do this:
cat HITS i get the following displayed: sport.hits:87.114.172.31 Thu Sep 28 22:45:12 GMT 2006 how do i put this information into a bordered table? so it will output like this: ...........File / IP..................Day.....Month.....Date............Time..............Year sport.hits:87.114.172.31......Thu......Sep....... 28........22:45:12 GMT...... 2006 |
|
||||
|
Don't know what you really want, but quite likely it would suit your needs to import that file as csv file into some spreadsheet like OpenOffice Calc and use space as separator instead of comma.
|
|
||||
|
basically what i want is for my output to be displayed in a table that has a border.
i am running a script that searches ip adresses from various files. the files are displayed (using cat HITS) once they have been searched. they are displayed from a file called HITS they are displayed in a list like this when they are output: adventure.hits:223.79.87.212 Tue Sep 05 02:19:02 GMT 2006 i want to be able to have this output placed in a table format with borders and headings for each column: File / IP Day Month Date Time Year does this explain it a bit better? |
|
||||
|
What do you want to do with that table?
Use as input for some dumb script requiring constant length fields -> you need a real script solution Simply have good looking logs -> go for csv or html idea html idea: no, you don't need to be connected to the internet therefore, you just need a browser to view that html file. Even if you are on a text terminal (and do not want to copy that file to some X-machine) you can use lynx or w3m to view that html file. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|