Hacker News new | ask | show | jobs
by flaxton 2167 days ago
Didn't work on macOS (multiple sed errors - switches differ from Linux) but prompted me to write a help function ;-)
2 comments

I have a project that makes heavy use of sed.. On macOS, I `brew install gnu-sed` and use `gsed` instead, so it works like other platforms.
Nice! I will check that out.
here is a gist that works on macOS (using `awk` instead of sed)

https://gist.github.com/ivanistheone/0454191800c9caad77a52e0...