开发者

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" \)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜