Re: Using Multiple -prune directives in a find command

2011-02-08 Thread Martin McCormick
Mike Clarke writes: find . -type d -name dir1 -prune -o -name dir2 -prune -o -name \* ... should list all files except those in dir1 or dir2 It certainly does. Thank you. I was off on enough wrong syntax tracks that it probably would have taken a very long time to figure it out. I found tons

Using Multiple -prune directives in a find command

2011-02-07 Thread Martin McCormick
Can one use the -prune directive multiple times in a find command to specify a list of directories not to descend? It would be like find . -name * -prune dir1 -prune dir2 -print or whatever you wanted find to do, but that does not work or I wouldn't be asking. Find appears to

Re: Using Multiple -prune directives in a find command

2011-02-07 Thread Mike Clarke
On Monday 07 February 2011, Martin McCormick wrote: Can one use the -prune directive multiple times in a find command to specify a list of directories not to descend? It would be like find . -name * -prune dir1 -prune dir2 -print or whatever you wanted find to do, but that