Cleartool find command within a directory only

故事扮演 提交于 2019-12-08 06:46:27

问题


I'm using the following command:

cleartool find . -all -nvisible -print

Its returning information for every file in my /vob

I really want to limit the search to a specific directory, but I can't get the syntax correct.

Ex:

cleartool find /vob/dir1/dir2/ -all -nvisible -print

Is there a way to do this? Thanks!


回答1:


No, by looking at the documentation of cleartool find:

-a/ll

With pname arguments, modifies the meaning of each argument to specify its entire VOB, not just a single file or directory.
Without any pname arguments, specifies the VOB containing the current working directory.

Note: When you use find -all, only one instance of an element is reported, even if one or more VOB hard links point to the element. Either the element name or one of the VOB hard links is displayed.

Try without the -all to see if it still fits your need.

cleartool find /vob/dir1/dir2/ -print

However, that will only find visible elements, -nvis is only used with -all for a vob-wide search.



来源:https://stackoverflow.com/questions/16817510/cleartool-find-command-within-a-directory-only

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!