![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Changing one column of delimited file column to fixed width column | manneni prakash | Shell Programming and Scripting | 5 | 06-22-2009 06:27 AM |
| updating a column in a unix table for a particular row | thanuman | Shell Programming and Scripting | 5 | 02-09-2009 06:52 PM |
| Sorting in unix using column number | swat | UNIX for Advanced & Expert Users | 1 | 11-15-2007 06:59 AM |
| to delete a column in unix | gaddesuneetha | UNIX for Dummies Questions & Answers | 8 | 12-12-2006 06:48 PM |
| delete 7th column in unix | pavan_test | UNIX for Dummies Questions & Answers | 6 | 12-20-2005 03:17 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
the column utility takes input and formats it into columns (three columns as defualt i think) but its only in linux, not in unix. i know there are a few regular commands i can use to make a simple script to use it in unix, i just dont know the one command that could format it. would it be fmt
|
|
||||
|
Java? That's an awk script.
Could could put it on one line and use no comments and shorter variable names if you wish, e.g. Code:
ls | awk 'BEGIN{if(!(w>0))w=80}length>m{m=length}{a[NR]=$0}END{c=int(w/++m);for(i=1;i<=NR;i++){printf("%-"m"s",a[i]);if(!(i%c))print""}if(--i%c)print""}'
You may be thinking of something like ls | paste - - - - (to format ls output into four columns, but that won't adjust the column widths to make them line up. |
|
||||
|
Please help me in troubleshooting my problem in Samba?
I tried to instal Samba 3.0.24 in our SCO UnixWare 7.1.4 but after installing the nmbd daemon is not running. When i check the syslog from /var/adm, the following error appears: Sep 30 13:04:22 unixeei nmbd[25169]: bind failed on port 137 socket_addr =0.0.0.0. Thanks ![]() Eric |
![]() |
| Bookmarks |
| Tags |
| linux commands, unix commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|