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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…