Re: find - output order
On Tue, 7 Jul 2009 15:10:06 +1000
Alex Samad <firstname.lastname@example.org> wrote:
> 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]*
> 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
First ii* (unsorted), then [0-9]* (unsorted), then aa* (unsorted).
find ii* [0-9]* aa* | sort