I'm trying to find and replace one or more occurrences of a character using sed on a mac, sed from the BSD General Commands.
I try:
echo "foobar" | sed -e "s/o+//g
expecting to see:
fbar
But instead I see
foobar
I can of course just expand the plus manually with:
echo "foobar" | sed -e "s/oo*//g"
but what do I have to do to get the plus sign working?
/g
flag,s/o//g
is enough to replace allo
occurrences.