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
  • Indeed, mapfile is a new one to me also. Kudos. Commented Jul 13, 2017 at 17:48
  • The while IFS= read version works back in bash v3 (which is important for those of us using macOS). Commented Jul 13, 2017 at 19:39
  • 4
    +1 for the find -print0 variant; grumble for putting it after a known-incorrect version, and describing it only for use if one knows that they need to handle newlines. If one only handles the unexpected in places where it's expected, one will never be handling the unexpected at all. Commented Jul 13, 2017 at 20:35