Exclude folder using `find` command
find $HOME -path $HOME/.Trash -prune -o -name test1 -type d -print
By explicitly using -print
you avoid the spurious printing of .Trash
.
find $HOME -path $HOME/.Trash -prune -o -name test1 -type d -print
By explicitly using -print
you avoid the spurious printing of .Trash
.