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.

6
  • 1
    Will the prior approach work if using find . -type f (where for won't)? Commented Nov 9, 2015 at 7:50
  • It will; just be aware that file names containing newline characters break that approach. Commented Nov 9, 2015 at 11:58
  • Filenames containing newline characters; then I'd say the problem would lie elsewhere :) Commented Nov 10, 2015 at 13:22
  • 1
    No, the problem is with scripts that make naive assumptions about what characters can appear in a file name. Commented Nov 10, 2015 at 13:39
  • 1
    This was a tough one to debug -- thanks for saving me a headache today! Commented Jul 23, 2019 at 2:46