I'm having trouble creating a batch file, which will correct some text files for me. So I need your advice. I need to get the data in field |No=xxx| in numerical format without any alphabetic characters , special character or spaces
I'm looking for a Batch code that can do this work, because I have a lot of files with this problem.
The text files (input.txt) are made this way:
|Job=1|Typ=S|Action=Order|No=531.04220440.00|
|Job=1|Typ=P|Action=Information|M=1|
|Job=2|Typ=S|Action=Order|No=ALR-2005605 |
|Job=2|Typ=P|Action=Information|M=3|
….
|Job=99|Typ=S|Action=Order|No=AF502033H|
|Job=99|Typ=P|Action=Information|M=1|
I was not able to understand JREPL by the way. I have to create files correting the input between |No=and | The File Example should look like that ,after the batch (output.txt)
|Job=1|Typ=S|Action=Order|No=5310422044000|
|Job=1|Typ=P|Action=Information|M=1|
|Job=2|Typ=S|Action=Order|No=2005605|
|Job=2|Typ=P|Action=Information|M=3|
….
|Job=99|Typ=S|Action=Order|No=502033|
|Job=99|Typ=P|Action=Information|M=1|
Thanks for your help.