I am on Linux (Ubuntu) and I am would like to exclude certain directories (like .hg) when I am doing a
find | less
I tried the following to exclude the .hg directory from listing, but does not seem to work.
find -type d \( ! -iname \.hg \) find -type d \( ! -name \.hg \) find -type d \( ! -iname .hg \)
How do I exclude
.directory in a find command