![]() |
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 |
| Perl, printing a string into columns | doubleminus | UNIX for Dummies Questions & Answers | 5 | 05-21-2008 09:41 PM |
| awk printing all columns after (but including) $n | cassj | UNIX for Dummies Questions & Answers | 2 | 03-05-2008 03:22 PM |
| printing columns | cdunavent | Shell Programming and Scripting | 3 | 06-07-2003 11:31 AM |
| Printing Problems in unix ... ( Bar-cdoe - Ip Printing) | QuickSilver | UNIX for Advanced & Expert Users | 3 | 06-04-2002 10:48 AM |
| Printing from unix with lp | pmcg | UNIX for Dummies Questions & Answers | 4 | 10-23-2001 08:39 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Printing Columns in Unix
ok. this is a bit of a difficult question but i've been trying to figure this out for quite some time but couldn't.
how do I print columns on the screen? like take for instant. using the ls and the file command, how do i print it so i can have the filenames on the left hand side and the type of contents that is in the file on the right hand side. something like this: ls -l file filename foo.bar1 === data foo.bar2 === data foo.bar3 === executable script foo.bar4 === command text how can i print columns like that and have em actually be aligned properly? i'm guessing the commands sed, awk, and tput would likely be used here but i cant figure out how to use them properly. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|