Hi,
I am having trouble using unix find and excluding anything in .snapshot.
I can't see any flag for exclude
Suggestions???
Try this:
find . ( -name .snapshot -prune ) -o -print
Of course, you can replace -print with anything else that you want to do. If you want to do something more complex than -print I suggest surrounding it with ( and ) rather than rely on default operator precedence.
find . ( -name .snapshot -prune ) -o ( -user fred -print )
The above example skips anything named .snapshot and prints the names of files owned by user fred.
Steve Losen scl@virginia.edu phone: 434-924-0640
University of Virginia ITC Unix Support