I want a simple code to replace multiple spaces with a single | in a file. Code must include input and output file path.
For example Input,
200 514099******2039 00 17/01/25 0 592335 557.00 586
Required Output,
200|514099******2039|00|17/01/25|0|592335|557.00|586
Kindly assist in this regard. Any help would be highly appreciated.