![]() |
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 |
| Flat File in HP-UX | Krishnaramjis | Shell Programming and Scripting | 0 | 06-03-2008 12:24 AM |
| Flat file | Krishnaramjis | Shell Programming and Scripting | 9 | 05-08-2008 11:28 PM |
| Help with a Flat File!!! | kumarsaravana_s | Shell Programming and Scripting | 11 | 06-08-2007 12:15 AM |
| XML to flat file | balireddy_77 | Shell Programming and Scripting | 2 | 04-13-2007 06:57 AM |
| Converting Pivot file to flat file | vskr72 | Shell Programming and Scripting | 2 | 10-18-2005 05:41 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Help with a flat file!!!
Hi All,
I get a flat file everyday with some records being invalid.Some records come with less number '|'.I just want to add the missing '|'s ,So the it doesnt give an error insufficient fields while loading...There area total of 32 pipes in each record. Input: ASADASD |Y|B|SDFGDSDFD| | |0|-2000|N|N|Y|Y| |P|111 |000 |N|N|N|N|N|N|N|ADJS|N |M| |N|N|N|A|Y|RC ADASDAS|N|E|FSGDFGDFFS| | |0|0|Y|Y|N|N|N|P|111 |0000 | DSASA|N|E|SDGFDGD| | |0|0|Y|Y|N|N|N|P|1111 |000 | DASAS |Y|E|DFGDF| | |0|0|N|-|N|N| |P|111 |000 |N|N|N|N|N|N|N|ADJS|N |O| |N| |N|A|N|RC Output : ASADASD |Y|B|SDFGDSDFD| | |0|-2000|N|N|Y|Y| |P|111 |000 |N|N|N|N|N|N|N|ADJS|N |M| |N|N|N|A|Y|RC ADASDAS|N|E|FSGDFGDFFS| | |0|0|Y|Y|N|N|N|P|111 |0000 |||||||| || |||||| DSASA|N|E|SDGFDGD| | |0|0|Y|Y|N|N|N|P|1111 |000 |||||||| || |||||| DASAS |Y|E|DFGDF| | |0|0|N|-|N|N| |P|111 |000 |N|N|N|N|N|N|N|ADJS|N |O| |N| |N|A|N|RC Your help here is really appreciated.. regards, Kumar |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|