4 ms·
You can also use the -i flag of sed to edit a file in-place. It leaves a backup file with the original in case you messed up.
by OskarS 10y ago
You can also use the -i flag of sed to edit a file in-place. It leaves a backup file with the original in case you messed up.
- Annatar 10y agoI explicitly wrote: GNU sed -i is an architectural violation of the idea of a stream editor, and it isn't available everywhere. precisely to preclude anyone from suggesting using GNU sed -i.