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
  • why its not working for me, printenv | grep $new_value | while IFS='=' read -r name value; do new_name="TF_ENV${name#$new_value}"; export "$new_name=$value"; done where $new_value=proj_env_repo Commented Oct 16, 2019 at 21:33
  • 1
    @Kusalananda, d'oh! I'll fix. Commented Oct 17, 2019 at 0:50
  • @Swat, please try my edited answer. Commented Oct 17, 2019 at 0:53
  • Will there be issues with variables holding newlines? Commented Oct 17, 2019 at 7:02