bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

find . -path '*/.gork' -prune -o -type f : prints ".gork"


From: David M. Karr
Subject: find . -path '*/.gork' -prune -o -type f : prints ".gork"
Date: 03 Nov 2000 14:51:06 -0800
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6

I have a directory that contains two elements:
  - Directory named ".gork"
  - Directory named "subdir"

The ".gork" directory has a file called "stuff".
The "subdir" directory has a file called "foo".

When I execute the following:

   find . -path '*/.gork' -prune -o -type f

I would expect it to just print "testdir/subdir/foo".  The "find" man
page gave me this impression in the description of the "-path"
option.  However, it also prints "testdir/.gork".  It didn't print
"testdir/.gork/stuff", but it did print the ".gork" directory entry.
How can I make "find" not even print the directory entry for ".gork"
(without piping it into a "grep -v" command)?

-- 
===============================================================================
David M. Karr     ; address@hidden  ; w:(425)487-8312 ; TCSI & Best Consulting
Software Engineer ; Unix/Java/C++/X ; BrainBench CJ12P (#12004)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]