To exclude dirs from the find command:

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


Technorati Tags: , , ,