|
How about a situation where you only want to find all regular files, but omit certain directories? Eg, i tried:
find . -name 'dir1' -prune -o name 'dir2' -prune -o type f
And the above does give me just regular files, except i get an entry for 'dir1' and 'dir2'; even though none of the files underneath these directories appear in the final list (which is what i want). I also want to omit the 'dir1' and the 'dir2' entries. They're the only things that show up in my output that are not regular files.
Thanks.
|