On 20Oct2020 10:58, Samuel Sieb <samuel(a)sieb.net> wrote:
On 10/20/20 10:52 AM, Todd Zullinger wrote:
>While tac is handy (and amusingly named), I don't think it's
>what you want. The reason is that the find output order
>isn't deterministic. It's in the directory entry order,
>which depends on when the directories were created.
[...]
I can't imagine how it could work like that. It has to go
recursively
so it will *always* find the parent directory first. How could a
subdirectory possibly be created before its parent directory?
WRT to the recursion side, yes, you're right. But at a particular level
the names won't necessarily come out in lexical order (the come out in
directory entry order), so a sort is often useful anyway.
Cheers,
Cameron Simpson <cs(a)cskk.id.au>