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*

2
  • I’m running Ubuntu 18.04 and I’m not set on anything specific like sed or awk. Whatever is easiest. Here is a sample of the config file: gist.github.com/yyolk/4747010 Commented Apr 21, 2019 at 0:04
  • jq should be available from the Ubuntu universe repository - in which case you should be able to use something like jq --argjson var "$newport" '."peer-port" = $var' settings.json I think Commented Apr 21, 2019 at 1:43