Hi,
I have 3 kind of files that contains date data needed to be masked. The file is like this:
File 1 (all contents in 1 line):
input:
DTM+7:201103281411:203'LOC+175+SGSIN:139:6+TERMINATOR......'DTM+132:201103281413:203'LOC....
output:
DTM+7:'''''''''''':203'LOC+175+SGSIN:139:6+TERMINATOR......'DTM+132:'''''''''''':203'LOC....
File 2( contents devided in many lines):
input:
EXIT201103281044IAAU 3680272 4363400018000DD FIL IL LEA PERDANA 006 006 MANLEE FD LD RD DD N
DISC201103281101TCKU 9672645 45G1400022500DD FIL RC VIRO BHUM S079 S079 0300312TCNTXG NN N
output:
EXIT''''''''1044IAAU 3680272 4363400018000DD FIL IL LEA PERDANA 006 006 MANLEE FD LD RD DD N
DISC''''''''1101TCKU 9672645 45G1400022500DD FIL RC VIRO BHUM S079 S079 0300312TCNTXG NN N
File 3:
input: date to be masked is near to HHDR
HHDR 01010020110208000004NYK VERANICD 266 2011020704100020110207181500 D NYKU 5629211 F22521 NY NY N N NZLYT NZZ063854 4510LCI C HHDR 01010020110208000004ARUNIRICKMER 008W 2011020717050020110208010000
output:
HHDR 010100''''''''000004NYK VERANICD 266 2011020704100020110207181500 D NYKU 5629211 F22521 NY NY N N NZLYT NZZ063854 4510LCI C HHDR 010100''''''''000004ARUNIRICKMER 008W 2011020717050020110208010000
I have to find a generic solution that can mask those data no matter what kind of file(among those 3 kind) is put in. It's not hard to handle each kind of file but when it comes to 3 files, I'm desperated.