Yes, but -i on sed is specific to GNU, I don't think it exists on BSD/OSX/busybox
(Would love to be proved wrong on this)
sed -i.bak 's/foo/bar/' filename
[1]: https://stackoverflow.com/a/22084103/3266847 sed -i ‘’ ...
works on BSD sed but not GNU. Meanwhile: sed -i’’ ...
sed -i ...
both work on GNU but not BSD.