I have got similar question answerd on here before, but this time, it is a little more challenging for me, all what I need is to remove | between name “\WAPNER| john | M\”
it will be a plus to remove the back slashes too.
file
10.46|5060|100002366551140|\WAPNER| john | M\ |100002366551750
Desired output
10.46|5060|100002366551140|\WAPNER john M\ |100002366551750
it will be perfect if your solution will also work with names with single slash 🙂
10.46|5060|100002366551140|\WAPNER| M\ |100002366551750
output will be
10.46|5060|100002366551140|\WAPNER M\ |100002366551750
Thank you
This might work for you (GNU Sed):