find -exec question
MR ZenWiz
mrzenwiz at gmail.com
Sun May 11 23:03:54 UTC 2014
On Sun, May 11, 2014 at 3:05 PM, R Kimber <richardkimber at btinternet.com> wrote:
> On Sun, 11 May 2014 14:50:53 -0700
> MR ZenWiz wrote:
>
>> Without other guidance, 'find' reports its results in mtime order.
>
> Ah. Thanks. So is it possible to give it guidance such that the results
> are alphabetic?
>
Not that I know of from inside the 'find.' You can sort the output,
but that also requires a more complex command to operate on the
results, e.g.:
ls -l `find . -type f -print | sort`
or:
for i in `find . -type f -print | sort`; do <whatever you like> $i; done
More information about the ubuntu-users
mailing list