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 is sad for regexes. You could either try the -E, which might work with BSD, or you could try this one instead:
sed -e "s/o\{1,\}/"
Perhaps there are too many sed's out there to have a usable tool on any system.