Closed dragon-dxw closed 3 years ago
Apparently the default sed on Mac is different, expecting a parameter for where to back the old file up to.
https://stackoverflow.com/questions/19456518/error-when-using-sed-with-find-command-on-os-x-invalid-command-code/19457213#19457213
Apparently this argument is the extension of what the old file gets backed up to. (This currently doesn't make a backup of the original file.)
The suggestion to instead install gnu sed viabrew install gnu-sed is also worth consideration.
brew install gnu-sed
Apparently the default sed on Mac is different, expecting a parameter for where to back the old file up to.
https://stackoverflow.com/questions/19456518/error-when-using-sed-with-find-command-on-os-x-invalid-command-code/19457213#19457213
Apparently this argument is the extension of what the old file gets backed up to. (This currently doesn't make a backup of the original file.)
The suggestion to instead install gnu sed via
brew install gnu-sed
is also worth consideration.