How to stop find command from listing folders with dot(.)
In my home dir , i have folders like .cpan .cpcpan and they are also showing.
How i hide them . i am using
find /home -mindepth 1 -maxdepth 1 -type d -printf 开发者_JS百科"%f\n"
Prune them.
find /home -mindepth 1 -maxdepth 1 -type d \( -name '.*' -prune -o -printf "%f\n" \)
精彩评论