Index ¦ Archives ¦ RSS

find -exclude

Estimated read time: 1 minutes

ok, there is no such option, but there is an equivalent trick :)

for example if you want to do exclude the _darcs dir, then you need:

find . -type d -name _darcs -prune -o -print

where can be "-name *.c" or so

thanks crazy for the tip :)

© Miklos Vajna. Built using Pelican. Theme by Giulio Fidente on github.