How to fix the “sed command expects \” error on Mac OS

April 7, 2021

If you are familiar with the sed command on Linux then you might be in for an unpleasant surprise the first time you try to use it on Mac OS. Mac OS runs the BSD version of the sed command. As such, there are some syntax differences. An example of a classic sed command, that