> On 22 Jun 2006 08:22:39 -0700, James
>> Hi all,
>> I am using ksh on AIX 5.2, "Find" does not support "-path"
>> I searched previous posts and got some hints,
>> If I want to exclude only /tmp, the following command is working well
>> find /!(tmp) -user foobar -print
>> How about to exclude /tmp, /proc, and /dev all together?
>> Is there a similiar way to do it?
> find /!(tmp|proc|dev)
> This works in ksh, or zsh with the KSH_GLOB option.
And in bash with the extglob option set.
Quote:> In other shells, you could pipe the output of find to
> grep -v -e '^/proc' -e '^/tmp' -e '^/dev'
Chris F.A. Johnson, author <http://cfaj.freeshell.org>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence