cleartool lsstream -tree get only list of child streams

六眼飞鱼酱① 提交于 2019-12-24 09:49:57

问题


I want to list get list of child streams under a given stream.

cleartool lsstream -tree gets all streams and activities under it.
How can print only the stream-names?


回答1:


Use fmt_ccase to mention exactly the kind of information you want:

cleartool describe -fmt "%[dstreams]CXp" stream:myStream@\myPVob

That would give you one line of:

stream:streamA@MyPvob, stream:streamC@MyPvob, stream:streamC@MyPvob, ...

So there would still be a bit of processing to do, but at least you would have only what you were after: the child streams of a given Stream.



来源:https://stackoverflow.com/questions/5366797/cleartool-lsstream-tree-get-only-list-of-child-streams

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