find -exec question

C de-Avillez hggdh2 at ubuntu.com
Sun May 11 19:29:16 UTC 2014


On Sun, 11 May 2014 19:05:45 +0100
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?
> 
> - Richard.

You may be hitting the fact that sort output will depend on locale
setup. On the other hand, you did not specify what options you used on
'find' so I am not sure what is going on.

..C..

-- 
ab alio expectes alteri quod feceris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20140511/53cefa82/attachment.sig>


More information about the ubuntu-users mailing list