find -exec question

MR ZenWiz mrzenwiz at gmail.com
Sun May 11 21:50:53 UTC 2014


On Sun, May 11, 2014 at 11:05 AM, R Kimber <richardkimber at btinternet.com> wrote:
> When I use 'find' with the '-exec' option, I see that it does not pass the
> filenames to the program being executed in alphabetical order of directory
> name.
>
> What is the criterion 'find' uses to order its results? Is there a
> way of getting it to traverse the directory structure alphabetically, so
> that I can process each directory in alphabetical order?
>
Without other guidance, 'find' reports its results in mtime order.

HTH,
MR




More information about the ubuntu-users mailing list