开发者

Has 'find' similar capability as 'ls -visible pname'

I can u开发者_高级运维se "ls -visible pname" to find visible elements under 'pname'. But through 'find', I can NOT find a way to find just visible elements. That is, 'find' will always list hidden elements by the Config Spec also.

Does anyone know if 'find' can find just 'visible' elements under a specific 'pname'??

Thanks


cleartool man find

http://publib.boulder.ibm.com/infocenter/cchelp/v7r0m1/index.jsp?topic=/com.ibm.rational.clearcase.cc_ref.doc/topics/ct_find.htm

Note: The find command is similar to the UNIX and Linux find(1) command. Only a limited set of the standard find options are supported; the way that commands are invoked on selected objects (–exec and –ok options) differs from find(1).

To answer your question to VonC, no, you are wrong. -visible does not need to work with -all, and you can use -visible to achieve exactly what you want to do.


cleartool find has also the visible option, which should return the same result than cleartool ls.

–vis/ible

Includes only those elements, along with their branches and versions, that are visible (have a standard path name) in the view.

This option has been introduced to speed up search on multiple vobs.

For one vob, as kolslorr suggests in the comments of his answer, -cview is more appropriate, and I would combine it with -nxname:

–cvi/ew

Modifies the set of objects selected by the –element, –branch, and –version queries (if any).
- If you did not specify –version, replaces each element and branch with the version that is currently in the view. (No substitution is performed on VOB symbolic links.)
- If you did specify –version, further restricts the subset to versions that are currently in the view.

-nxname

Removes the extended naming symbol (by default, @@) and any subsequent version ID or branch path name from the name of each selected object.
Duplicate names that result from this transformation are suppressed.
In effect, this option transforms extended names into standard operating system names; it also transforms names of branches or versions into names of elements.

With those two options, compatible with a specific path, you should achieve what you want.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜