find -exec question

R Kimber richardkimber at btinternet.com
Tue May 13 20:53:37 UTC 2014


On Mon, 12 May 2014 08:21:38 -0400
Normand Marion wrote:

> find will be traversing the directory tree in the order items are stored
> within the directory entries.
> 
> so do
> 
> find dir -type f | sort [sort_param] | xargs -i command {}

Many thanks.  This works fine.  I've always been a bit wary of xargs; I'll
have to learn more about it.

- Richard.
-- 
Richard Kimber





More information about the ubuntu-users mailing list