07-25-05 11:07 PM
["Followup-To:" header set to comp.unix.shell.]
On 25 Jul 2005 08:39:15 -0700, Generic Usenet Account
<usenet@sta.samsung.com> wrote:
> I want to launch a "find" query, and I want to exclude some directories
> from the search. I am looking for something like this:
>
> find . -type f & excludes specified directories -exec do-something {}
> \;
>
Look at the "-prune" option.
find . -name excluded_dir -prune -o -type f -exec do_something {} \;
-- Tonight you will pay the wages of sin; Don't forget to leave a tip.
[ Post a follow-up to this message ]
|