![]() |
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 |
| How to transpose data elements in awk | ahjiefreak | Shell Programming and Scripting | 2 | 05-13-2008 04:44 AM |
| How to check Null values in a file column by column if columns are Not NULLs | Mandab | Shell Programming and Scripting | 7 | 03-15-2008 09:57 AM |
| Row to column transpose | videsh77 | Shell Programming and Scripting | 10 | 06-16-2007 12:54 PM |
| transpose command | su_in99 | UNIX for Dummies Questions & Answers | 3 | 05-16-2007 05:10 AM |
| Replace 10th column with a new column--- Terriblly hurry | ahmedwaseem2000 | Shell Programming and Scripting | 2 | 09-06-2005 01:10 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How do I transpose a column of results to a row
Hi,
Can anyone advise me what command I could use to display the results of the following command as a row. Quote:
Gareth |
|
||||
|
Thanks for this code. It's doing exactly what I asked but unfortunately my plan to use the resulting output as input to another command isn't working.
I was trying to use this as input to the command below, however it's only processing the first item in the list. Code:
sm_inst installp_cmd -u -f `lslpp -l|grep tsm| tr '\n' ' '` Code:
sm_inst installp_cmd -u -f'fileset-1 fileset-2' I did try the other suggestion but just got an error Code:
lslpp -l|awk '/tsm/{ORS=" "}{print}END{print "\n"}' file
awk: 0602-533 Cannot find or open file file.
The source line number is 1.
thanks Gareth |
|
||||
|
Quote:
Code:
lslpp -l|awk '/tsm/{ORS=" "}{print}END{print "\n"}'
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|