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
  • 1
    Add an -i switch to the sed command to edit the file in place. Commented Oct 16, 2018 at 17:31
  • 2
    Consider using jq instead to perform operations on JSON files. It's a better tool, since it understands the actual underlying format, so it's able to do a better job on it than awk and sed. Commented Oct 16, 2018 at 17:41
  • really? how jq can replace the strings? Commented Oct 16, 2018 at 18:03
  • 1
    $currentSchema does not expand within strong/single quotes. Commented Oct 16, 2018 at 19:03