LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-04-2007, 10:17 AM   #1
dresch
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, 10:35 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

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


Reply


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 09:27 AM
How to access the contents of routing table within a program?(for RIP1) prashanth s j Linux - Networking 1 09-03-2005 05:29 AM
Changing a table contents dynamically based on select box rose_bud4201 Programming 4 01-13-2005 11:48 AM
phpBB2 contents go to the _blank_ table.. miguetoo Linux - Software 0 12-13-2004 02:21 PM
Apache2: How to allow Apache to display contents in the file system? vous Linux - Software 1 02-03-2004 06:36 AM


All times are GMT -5. The time now is 07:31 PM.

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