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*

4
  • 4
    Note that xstat() has eventually been added to Linux, so it's only a matter of time before the GNU libc and find add support for it. Commented Jun 3, 2017 at 9:35
  • 1
    Awesome! Good news indeed. Commented Jun 3, 2017 at 10:18
  • I am very late to the party but I just stumbled across this answer. I have got your code but my filename starts with a $ sign e.g. $ncomdtl.dbf when i try your code on this file i get the following stat: cannot stat `/media/pcontrol/.dbf': No such file or directory Commented May 27, 2022 at 8:19
  • Totally credible that the script fails with a $ in the filename. Common bug. Would need to check it, as $ is of course a special chart in bash, and so needs escaping or the string in single quotes etc. Easy to diagnose and fix and PR is welcome, or I can check it when time permits (which is scant). Commented May 30, 2022 at 8:39