Re: find - output order
On Tue, 7 Jul 2009 15:10:06 +1000
Alex Samad <alex@samad.com.au> wrote:
> Hi
>
> does find out put files in any sort order ?
>
> for example
>
> for x in $(seq -w 00 99); do touch $x ii$x aa$x; done && find ii* [0-9]*
> aa*
>
> is the output guaranteed to be in sort order, i.e. ii* files first and
> sorted and then [0-9]* files next and sorted and then aa* files and
> sorted
First ii* (unsorted), then [0-9]* (unsorted), then aa* (unsorted).
hint:
find ii* [0-9]* aa* | sort
Dirk.
Reply to: