This is the abc.txt file which consist of 5 columns:
ID|first name|middle name|last name|address 1 | john | whatever | smith | somewhere
How do I get this output:
ID|first name middle name last name|address 1 | john whatever smith |somewhere
How do I replace the
'|' with space only on specific columns to a new file def.txt. In this case, 2nd column until 4th column.