Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-04-2007, 09:17 AM   #1
LQ Newbie
Registered: Jan 2007
Posts: 5

Rep: Reputation: 0
Unhappy Display file contents in table format

Is there some way to read a file and display it's contents in table form to stdoutput? For example display the contents of /etc/passwd as a table.
Old 01-04-2007, 09:35 AM   #2
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Yes, you can do this with awk and its printf function


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RIP 1 question : How to access the contents of a routing table within a program ? prashanth s j Linux - Networking 1 10-25-2005 08:27 AM
How to access the contents of routing table within a program?(for RIP1) prashanth s j Linux - Networking 1 09-03-2005 04:29 AM
Changing a table contents dynamically based on select box rose_bud4201 Programming 4 01-13-2005 10:48 AM
phpBB2 contents go to the _blank_ table.. miguetoo Linux - Software 0 12-13-2004 01:21 PM
Apache2: How to allow Apache to display contents in the file system? vous Linux - Software 1 02-03-2004 05:36 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration