exclude directories from find

Posted on January 28, 2007 in Linux

To exclude dirs from the find command:

find / -path '/some/dir' -prune -o -name '*.txt' -ls