2 ms·
That's same as `sed -i 's/foo/FOO/' ip.txt` on GNU sed. Question is about inplace editing command that works on both GNU and MacOS (without needing a backup, w
by asicsp 4y ago
That's same as `sed -i 's/foo/FOO/' ip.txt` on GNU sed.
Question is about inplace editing command that works on both GNU and MacOS (without needing a backup, with backup `-i.bkp` works on both). I don't have a Mac to check if `sed -e 's/foo/FOO/' -i 'ip.txt'` works there.
- tempodox 4y agoI checked, it doesn't. I see your point.