![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| More than transposing! | bulash | UNIX Desktop for Dummies Questions & Answers | 3 | 04-11-2008 02:20 PM |
| Transposing string | unibboy | Shell Programming and Scripting | 3 | 02-13-2008 03:12 PM |
| Major Awk problems (Searching, If statements, transposing etc.) | Blivo | Shell Programming and Scripting | 2 | 09-05-2007 03:41 AM |
| Another transposing issue | stevesmith | Shell Programming and Scripting | 14 | 09-16-2006 01:48 AM |
| transposing letters | myscsa2004 | Shell Programming and Scripting | 4 | 05-12-2004 07:11 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#15
|
|||
|
|||
|
Thanks. The problem is somehow just a opposite of the original one. Basically, we need to transpose a row based file to a column based file, please see below. Since the Excel has a limitation of 256 columns, it is almost useless to those who want to transpose a big file.
file format(tab delimited): chip1 a1 b1 c1 d1 ...... chip2 a2 b2 c2 d2 ............. chip3 a3 b3 c3 d3 ......... .... after transpose(tab delimited), chip1 chip2 chip3 chip4 ... a1 b1 c1 d1 ... a2 b2 c2 d2 ... a3 b3 c3 d3 ... .... |
| Forum Sponsor | ||
|
|
|
#16
|
|||
|
|||
|
sorry, it's wrong.
after transpose, chip1 chip2 chip3 ... a1 a2 a3 ... b1 b2 b3 ... c1 c2 c3 ... .... |
|
#17
|
||||
|
||||
|
Quote:
the output I get is: Code:
chip1 chip2 chip3 a1 a2 a3 b1 b2 b3 c1 c2 c3 d1 d2 d3 |
|
#18
|
|||
|
|||
|
original was column to row, but now is row to column.
|
|
#19
|
||||
|
||||
|
Quote:
isn't the above output what you wanted? |
|
#20
|
|||
|
|||
|
yes, original input was,
chip1 chip2 chip3 ... a1 a2 a3 ... b1 b2 b3 ... c1 c2 c3 ... ... output was, chip1 a1 b1 c1 ........... chip2 a2 b2 c2 ...... chip3 a3 b3 c3 .............. ... |
|
#21
|
||||
|
||||
|
ok, if you give it this input - what happens?
Code:
chip1 a1 b1 c1 d1 chip2 a2 b2 c2 d2 chip3 a3 b3 c3 d3 |
||||
| Google The UNIX and Linux Forums |