Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • "Existing server programs/utilities can't be upgraded." ... But do you have sponge from moreutils already installed by any chance? Commented Jun 22, 2024 at 2:01
  • 6
    Not in a position to write a tested answer (feel free for someone to adapt this into an answer), but shouldn't something like vi /etc/filename -c s/xxx/yyy/ -c :wq work? Commented Jun 22, 2024 at 6:34
  • 2
    The cause of your problem is that sed -i and perl -i do not edit a file; instead, they replace the file with a new one, which the user cannot create in that directory. Commented Jun 24, 2024 at 14:10
  • Unfortunately, sponge is not installed. Commented Jun 24, 2024 at 23:02