![]() |
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 |
| transpose file | new_ds_man | Shell Programming and Scripting | 3 | 07-09-2009 12:45 AM |
| Transpose Rows | iamwha1am | Shell Programming and Scripting | 4 | 03-18-2009 10:39 PM |
| How do I transpose a column of results to a row | m223464 | Shell Programming and Scripting | 6 | 05-06-2008 07:33 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Transpose using awk
I have a requirement to transpose the below xml which is in a text file on unix:
Code:
<?xml version="1.0" ?> <REQUEST> <ID>XXX</ID> <TIMESTAMP>20090720062610</TIMESTAMP> <FLAG>Y</FLAG> <TO_FLAG>Y</TO_FLAG> </REQUEST> Code:
<?xml version="1.0" ?><REQUEST><ID>XXX</ID><TIMESTAMP>20090720062610</TIMESTAMP><FLAG>Y</FLAG><TO_FLAG>Y</TO_FLAG></REQUEST> Code:
<?xml version="1.0" ?> Code:
<?xmlversion="1.0"?><REQUEST><ID>XXX</ID><TIMESTAMP>20090720062610</TIMESTAMP><FLAG>Y</FLAG><TO_FLAG>Y</TO_FLAG></REQUEST> Code:
awk '$1=$1' RS='' OFS='' test_trans.txt > SEQS_TRANS_test.txt Help appreciated , Thanks in Advance. Last edited by vgersh99; 07-21-2009 at 10:12 AM.. Reason: code tags, PLEASE! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|