Re:Bash-oneliner: A collection of handy Bash one-liners and ...
by ttyprintk on Wednesday May 04, 2022 @02:30AM
(#31257379)
sed -i alone overwrites a soft or hard link with the contents of the file.
[ Parent
| on HN ]
Re:Bash-oneliner: A collection of handy Bash one-liners and ...
by 1vuio0pswjnm7 on Wednesday May 04, 2022 @03:56AM
(#31257862)
-i creates a temporary file and then replaces the original with the temporary. The BSD man page advises not to use -i alone because if there is insufficient space to store the temporary, data may be lost.