tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ tab in regular expresion

Random number ▻

Find command, exclude dot directories.

In article <7johld$1i2$1@samba.rahul.net>,
nhdesign  <nhdesign@rahul.net> wrote:
>I want to run find . -name filename but have it exclude
>directories that match .arch*, any help?

    find . -name filename -print -o -name '.arch*' -prune

Tim.
--
Tim Goodwin   | `I can't believe that someone is releasing
University of | something called "Unix" without something
Leicester, UK | called "/bin/sh".' -- Randal L. Schwartz

Original headers:

From: tjg@ltpcg.star.le.ac.uk (Tim J Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: Find command, exclude dot directories.
Date: 10 Jun 1999 15:33:50 +0100
Organization: University of Leicester, UK
Message-ID: <7joice$4n2$1@ltpcg.star.le.ac.uk>
References: <7johld$1i2$1@samba.rahul.net>

△ comp.unix.shell △

◅ tab in regular expresion

Random number ▻