cleartool lsstream -tree get only list of child st

2019-07-27 10:28发布

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?

标签: cleartool
1条回答
等我变得足够好
2楼-- · 2019-07-27 11:06

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.

查看更多
登录 后发表回答