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
  • I suggest to edit the question and add an explanation what your sed script is supposed to do and show the (relevant) contents of ~/.ssh/config. Commented May 7, 2019 at 12:39
  • have you considered dropping sed and writing it in something more portable, awk perhaps? Commented May 7, 2019 at 13:08
  • Why do you have two separate scripts -e '...' with unbalanced braces? Can you combine this to one script? Maybe GNU sed somehow combines all to one script while other implementations handle them separately. Commented May 7, 2019 at 13:14
  • You may want to reword the question title - - it is the opposite of what you require. Commented May 7, 2019 at 15:33