![]() |
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 |
| What the command to find out the record length of a fixed length file? | tranq01 | UNIX for Dummies Questions & Answers | 9 | 12-04-2008 04:04 PM |
| how to convert Fixed length file to delimited file. | satyam_sat | Shell Programming and Scripting | 7 | 04-03-2008 02:41 AM |
| existing file to a fixed length file | cmanand | Shell Programming and Scripting | 3 | 01-25-2008 05:50 PM |
| use SQL loader to dump a fixed length file in to DB | anumkoshy | Shell Programming and Scripting | 2 | 10-10-2007 05:53 AM |
| Convert delimited to fixed length | nelson553011 | Shell Programming and Scripting | 14 | 10-27-2005 04:04 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
convert XML file into Text file(fixed length)
If someone out there could help me out with this problem. I would really appreciate it.
I am trying to convert xml into text file(fixed length) using Unix Borne shell scripts. My xml file: <root> <header_rec recordtype="00"> <record_id>00</record_id> <country_code>AK></country_code> </header_rec> <detail_rec recordtype="01"> <record_id_01>01</drecord_id> <country_code_01>AK</country_code> </detail_rec> <detail_rec rectyp_2="10"> <record_id>10</record_id> <country_code>AK</country_code> <fax>4567677</fax> </detail_rec> <trailer_rec recordtype="99"> <record_id>99</record_id> </trailer_rec> </root> My File Test.txt 00AK112005-08-15 (record type=00)(fixed lengths -->recordid:1-2 -->countrycode:5-7 012005-65AK2005-08-15 (record type=01) 012005-65AK2005-08-15 (record type=01) 012005-65AK2005-08-15 (record type=02) 012005-65AK2005-08-15 (record type=02) 99AK11392005-08-+0000424 (record type=99)) I can't use whitespace as a delimiter. Thanks you guys very much, I really appreciate it. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|