dxw / local-env

Get set up quickly for working with software at dxw
MIT License
3 stars 0 forks source link

on Mac sed -i expects a parameter afterwards: added #13

Closed dragon-dxw closed 3 years ago

dragon-dxw commented 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.