I have a file in the following format:
col1|col2|col3|col4 a|b|c|d e|f||h i|j|k|l
I would like to delete col3 (with the delimiter \"|\") fr
This might work for you (GNU sed):
sed 's/[^|]*|//3' file