1

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?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Jayan
  • 18,003
  • 15
  • 89
  • 143

1 Answers1

2

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.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250