by cocoto · 1mo ago · 0 comments
Small nitpick: Use long options and your code samples become self explanatory!
```bash
if [[ $OSTYPE == “darwin” ]]; then
alias sed=gsed
fi ```
Assuming you have run `brew install gnutools` on your Mac that should enable local dev for scripts that run on Linux. Apple’s bsd sed fork is strange.