I'm not very experienced with sed, but If I have a string like this:
asdf | this is something | something else | nothing | qwerty can I remove everything between the first and second instances of |, plus one of them?
The ideal output would be:
asdf | something else | nothing | qwerty I tried sed 's/|*|//2', but this only removes the second pipe.
Thanks