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.

1
  • 2
    You fail to quote expansions, reading values that may contain backslashes wrongly, trimming whitespace from read values, using sed on data that is not text, using sed with unsanitized shell variables, needless testing for directory before mkdir -p, and reading the output from find with newline as the delimiter even though pathnames may contain newlines. There is also an issue if the source path is a substring of the destination path. You also do not consider the actual questions posed by the asker. Commented Feb 3, 2022 at 19:15