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*

3
  • If not a duplicate, heavily related to unix.stackexchange.com/questions/596343/… Commented Jul 3, 2020 at 11:30
  • 1
    for Q1 : you can fork new shell for all 3 sites, but you'll be forking array as well and won't be able to merge them. why not use temporary files site$i_down.txt and site$i_up.txt Commented Jul 3, 2020 at 11:35
  • This sounds like a case for variable indirection (see this answer), although I am not sure if it works for non-scalar variables, too ... Commented Jul 3, 2020 at 12:00