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.

8
  • 2
    A while loop doesn't look right here. This Q&A might help: unix.stackexchange.com/questions/19654/… The error you are seeing looks to be due to <"$var" which perhaps should have been <<<"$var". Commented Jun 21, 2020 at 6:46
  • @guest Thanks a lot, that is just what I was looking for. Turns out, there was no need for such a complicated solution I was thinking of. Will learn more at Greg's Wiki. Commented Jun 21, 2020 at 6:54
  • I think this answer about backticks could be useful for you. Commented Jun 21, 2020 at 7:28
  • 1
    You declare an array of glob, then call the variable as $eighteen, but it's not a simple variable Commented Jun 21, 2020 at 12:51
  • 1
    And you don't have to struggle with IO redirections (>&4...) for this simple tasks. Copying without understanding is randomly useful Commented Jun 21, 2020 at 12:56