![]() |
|
|
|
|
|||||||
| 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 |
| What the command to find out the record length of a fixed length file? | tranq01 | UNIX for Dummies Questions & Answers | 9 | 16 Hours Ago 01:04 PM |
| how to convert Fixed length file to delimited file. | satyam_sat | Shell Programming and Scripting | 7 | 04-02-2008 11:41 PM |
| existing file to a fixed length file | cmanand | Shell Programming and Scripting | 3 | 01-25-2008 02:50 PM |
| use SQL loader to dump a fixed length file in to DB | anumkoshy | Shell Programming and Scripting | 2 | 10-10-2007 02:53 AM |
| Convert delimited to fixed length | nelson553011 | Shell Programming and Scripting | 14 | 10-27-2005 01:04 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|||
| Google The UNIX and Linux Forums |
| Forum Sponsor | ||
|
|