How do we build Normalized text file from DeNormalized one?

99封情书 提交于 2019-12-11 20:23:31

问题


Thanks for your replies/time.

We need to build a Normalized text file from DeNormalized text file. We explored couple of options such as unix shell , and Loading into data base etc. I am looking pick up better ideas for resolutions from this community.

The input text file is various length with comma delimited records. The content may look like this:

**XXXXXXXXXX , YYYYYYYYYY, TTTTTTTTTTT, UUUUUUUUUU, RRRRRRRRR,JJJJJJJJJ
111111111111,   22222222222, 333333333333, 44444444, 5555555, 666666
EEEEEEEE,WWWWWW,QQQQQQQ,PPPPPPPP**

We like to normalize as follows:

**XXXXXXXXXX , YYYYYYYYYY
TTTTTTTTTTT, UUUUUUUUUU
RRRRRRRRR,JJJJJJJJJ
111111111111,   22222222222
333333333333, 44444444
5555555, 666666
EEEEEEEE,WWWWWW
QQQQQQQ,PPPPPPPP**

Are there any simple approach to get the above?

Thanks in helping.

来源:https://stackoverflow.com/questions/20433479/how-do-we-build-normalized-text-file-from-denormalized-one

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!