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.

2
  • You would also need to double quote the variable expansions to cope with filenames containing whitespace and/or characters that the shell would otherwise treat as globbing patterns. See e.g. unix.stackexchange.com/questions/131766/… The curly braces are only needed in the destination path where the value of the output variable is concatenated with an underscore. Commented Sep 7, 2018 at 16:26
  • The goal is to append the file_name while placing it in the archive. See my answer above. Commented Sep 10, 2018 at 21:22