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*

11
  • Please explain how "the find command fails". Error message? Unexpected output? No output? Commented Mar 31, 2023 at 17:38
  • The file that contains spaces - is that filenames contain spaces, or the file contains blank lines (with or without spaces on them)? Commented Mar 31, 2023 at 17:39
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. Commented Mar 31, 2023 at 18:08
  • 2
    The issue is likely not the spaces (which are properly handled by your quoting of the expansion "$FILES.*") but the [ and ] characters Commented Mar 31, 2023 at 18:08
  • 1
    ... see for example Find fails if filename contains brackets Commented Mar 31, 2023 at 18:11