Sponsored Content
Top Forums Shell Programming and Scripting How do I transpose a column of results to a row Post 302191008 by m223464 on Thursday 1st of May 2008 07:59:15 AM
Old 05-01-2008
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:
i.e. Display this

$ lslpp -l|grep tsm
tivoli.tsm.books.en_US.client.pdf
tivoli.tsm.client.api.32bit
tivoli.tsm.client.api.64bit
tivoli.tsm.client.ba.32bit.base
tivoli.tsm.client.ba.32bit.common
tivoli.tsm.client.ba.32bit.image
tivoli.tsm.client.ba.32bit.nas
tivoli.tsm.client.ba.32bit.web

Like this

tivoli.tsm.books.en_US.client.pdf tivoli.tsm.client.api.32bit tivoli.tsm.client.api.64bit etc
Thanks

Gareth
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Row to column transpose

Can we transpose rows to columns? Fields within row are separated by a comma. (10 Replies)
Discussion started by: videsh77
10 Replies

2. Shell Programming and Scripting

Transpose column to row

Hi i have a file which has values seperated by "," as shown below and I want to transpose for every doc_id in one row. Input: DOC_ID,KEYWORD 105,REGISTROS 105,GEOLOGIA 105,NUCLEOS 105,EXPEDIENTE 105,PROGRAMAS 10025,EXPEDIENTE 10025,LOCALIZACIONES 10025,OFICIOS 10025,PROGRAMAS... (4 Replies)
Discussion started by: juelillo
4 Replies

3. UNIX for Dummies Questions & Answers

Row to column transpose

Hi there, Below is sample three rows which i need transpose into multiple rows. By keeping first 2 fields static and split them into multiple rows depend following date field. Each into seperate rows. Sample code: ... (6 Replies)
Discussion started by: ganeshd
6 Replies

4. Shell Programming and Scripting

Column to row Transpose

Hi Folks, Iam a kinda newbie to unix shell scripting, the scenario is i have a text file containing the following info Charlie chicago 15 Charlie newyork 26 jonny chicago 14 jonny newyork 15 joe chicago 15 joe newyork 18output should be Name chicago ... (3 Replies)
Discussion started by: tech_frk
3 Replies

5. Shell Programming and Scripting

Transpose column to row - awk

Hi there, I have a small csv file example below: source,cu_001,cu_001_volume,cu_001_mass,cu_002,cu_002_volume,cu_002_mass,cu_003,cu_003_volume,cu_003_mass ja116,1.33,3024000,9374400,1.54,3026200,9375123,1.98,3028000,9385512 I want to transpose columns to rows starting at the second... (3 Replies)
Discussion started by: theflamingmoe
3 Replies

6. Shell Programming and Scripting

To transpose row into column

Hi All, In shell, I have below data coming from some some text file as below: . 351706 5861.8 0.026 0.012 12.584 0.026 0.012 12.582 0.000 0.000 0.000 Now i need the above data to be transposed as below 351706... (16 Replies)
Discussion started by: Anamica
16 Replies

7. Shell Programming and Scripting

Transpose row to column

I'm using the testawk.awk from the following thread https://www.unix.com/shell-programming-and-scripting/18897-row-column-transpose.htmlI'm getting the following output fieldname1 data1 fieldname2 data2 fieldname3 data3 How can I get like this instead 1 fieldname1 data1 2 fieldname2 data2... (1 Reply)
Discussion started by: makkan
1 Replies

8. Shell Programming and Scripting

Transpose from row to column using timestamp in first column

Gents, Transpose from row to column, taking in consideration the first column, which contends the date. Input file 72918,111000009,111000009,111000009,111000009,111000009,111000009,111000009,111000009,111000009 72918,2356,2357,2358,2359,2360,2361,2362,2363,2364 72918,0,0,0,0,0,0,0,0,0... (12 Replies)
Discussion started by: jiam912
12 Replies

9. Shell Programming and Scripting

How transpose column in a row?

Hello guys, First of all happy holidays and happy new year. I'm new in bioinformatic and also it is my first time that I write in this forum. Therefore, sorry if I make some mistakes. I'm writing to ask your help to fix a problem: I have a file like this: gene1 GO:0016491|GO:0055114... (8 Replies)
Discussion started by: Salvatore_espos
8 Replies

10. UNIX for Beginners Questions & Answers

Transpose the Row and column

Hi, I have data in form of A ram B shyam C seeta D geeta A bob B methew C Richad D Mike and i want it in this form. A B C D ram shyam seeta geeta bob methew Richard Mike. please help by providing the scripting for this. (3 Replies)
Discussion started by: ricbha
3 Replies
libggzcore(3)							C Library Functions						     libggzcore(3)

NAME
libggzcore - The GGZ Gaming Zone core client library DESCRIPTION
This library is used by client programs to connect to the GGZ Gaming Zone server, handle game rooms, control user participation in the games, control chat and player properties. The ggzcore library handles the connection of a client application to the GGZ Gaming Zone server. It starts with offering a global configu- ration object for storing connection profiles for each server. The server list can be maintained by hand or updated via the GGZ metaserver. After this it goes on to callback registration for the connection, negotiation and authentication methods, which might include guest logins, first time player or registered player on the GGZ server. After a login it handles the global server object, the current room object and, when playing a game, the active game object. Additional objects include the table the game is associated with, players, game types and game modules which represent client-side game executables. Alternatively, a game can integrate ggzcore directly instead of being launched by a ggzcore-using GGZ core client, which is known as embed- ded ggzcore. Other tasks handled by the library are querying the local game registry with all properties per game; retrieving the server message of the day (MOTD) or player statistics; handling public, private and per-table chat as well as administrative messages; and managing the game launch and join events for players and spectators. FILES
The following files are used by this library: /usr/lib/libggzcore.so The GGZ Gaming Zone core client shared library ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-games | +-----------------------------+-----------------------------+ |Interface stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
ggz_h(3), ggzcore_h(3), ggzmod_h(3), libggz(3), libggzmod(3), attributes(5), ggz.modules(5), gnome-interfaces(5), ggz(6), ggz-config(6), ggz(7) GGZ Gaming Zone: http://www.ggzgamingzone.org/ http://www.ggzgamingzone.org/docs/api/libggz/ http://www.ggzgamingzone.org/docs/api/ggzcore/ http://www.ggzgamingzone.org/docs/api/ggzmod/ NOTES
Written by Michal Pryc, Sun Microsystems Inc., 2008. SunOS 5.11 29 May 2008 libggzcore(3)
All times are GMT -4. The time now is 04:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy