I have a very big text file in the following format; each field is seperated with a "|". Every row represents a new entry.
| |0|-|0|151| | |0|7611920|2|300|0|0|0|6830|1|16|21302|0|
| |2|-|1|0| | |0|7919120|21|400|0|0|0|6661|1|81|121|0|
..
I need to transform the file in the following format:
$1510100000160 21302 6830000 007611920
$0000100000810 121 6661000 007919120
..
some fields are included, some fields are excluded;
some fields with leading/following spaces and zeros;
Any help would be greatly appreciated.
Thanks and regards
| |0|-|0|151| | |0|7611920|2|300|0|0|0|6830|1|16|21302|0|
| |2|-|1|0| | |0|7919120|21|400|0|0|0|6661|1|81|121|0|
..
I need to transform the file in the following format:
$1510100000160 21302 6830000 007611920
$0000100000810 121 6661000 007919120
..
some fields are included, some fields are excluded;
some fields with leading/following spaces and zeros;
Any help would be greatly appreciated.
Thanks and regards