This issue has cropped up before, see the following thread(s) for a little discussion and some potential solutions-
The instructions appear to be written for a GNU version of sed whereas the mac is using a BSD version. If you’re uncertain about the sed command on a given system then man sed may help.
It’s a good heads up for working with linux/unix. Different versions can give subtle but big differences (like for example, the default python3 version that installs when you’re setting things up). These are definitely things I wish I realized earlier…
Whenever you are on the command-line you can type man [command] to read the manual about whatever command you’re curious about.
For example here you can type man sed and read what the flags do. Specifically for -e:
-e command
Append the editing commands specified by the command argument
to the list of commands.
From this you can see that what follows -e has to be a command. In this case it is s/Lingua-Franca/Lingua Franca/g (which is a type of search command).
Basically the format on MacOS is: sed -i ‘[extension]’ ‘s/Lingua-Franca/Lingua Franca/g’ wildcard/wildcard.txt
[extension] will be what it is saved as as a backup i believe (talks about it in the link).
But can leave it blank and just put ’ ’ if you don’t want one i think? (I’m really new to all this, but it worked for me!)
so I used: sed -i ‘’ ‘s/Lingua-Franca/Lingua Franca/g’ wildcard/wildcard.txt