![]() |
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 |
| Script to open program and send/execute command in program | tuathan | UNIX for Dummies Questions & Answers | 1 | 11-19-2008 09:59 PM |
| A program to trace execution of another program | jiten_hegde | High Level Programming | 3 | 08-19-2008 05:26 AM |
| How to write to stdin of another program (program A -> [stdin]program B) | vvaidyan | UNIX for Dummies Questions & Answers | 3 | 08-02-2008 05:21 PM |
| How to write to stdin of another program (program A -> [stdin]program B) | vvaidyan | High Level Programming | 1 | 04-30-2008 01:44 PM |
| executing a program within a program | Gekko | High Level Programming | 4 | 06-27-2002 03:36 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Sorry for the late reply (meetings...
)(assume awkscript filename = SmellsLikeHomeWork.awk) Code:
{
if (c!=FILENAME) { c=FILENAME ; i++ ;j=0 }
a[i,++j] = $5
}
END {
for( n=1 ; n<=j ; n++)
{
for( m=1 ; m<=i ; m++ )
{
printf("%s ",a[m,n]);
}
printf("\n");
}
}
|
|
|||||
|
Quote:
![]() great.. i couldn't remember that "pr" command ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|