As we are having many components , I am trying to describe all the baselines using following command
cleartool describe -l baseline:Baseline_2.1.0.13@\My_PVOB
It provides output like follows
"Build 13"
master replica: My_PVOB@\My_PVOB
owner: Admin
group: ABC
stream:Components_Integration@\My_PVOB
component: Baselines@\My_PVOB
label status: No Versions to Label
change sets:
promotion level: INITIAL
depends on:
Baseline_2.1.0.13.8206@\My_PVOB (Comp1@\My_PVOB)
Baseline_2.1.0.13.433@\My_PVOB (Comp2@\My_PVOB)
Baseline_2.1.0.13.423@\My_PVOB (Comp3@\My_PVOB)
Baseline_2.1.0.13.3763@\My_PVOB (Comp4@\My_PVOB)
Actually i want to get contents only below depends on: ( Want to get Just following contents)
Baseline_2.1.0.13.8206@\My_PVOB (Comp1@\My_PVOB)
Baseline_2.1.0.13.433@\My_PVOB (Comp2@\My_PVOB)
Baseline_2.1.0.13.423@\My_PVOB (Comp3@\My_PVOB)
Baseline_2.1.0.13.3763@\My_PVOB (Comp4@\My_PVOB)
How to omit the remaining information?
Read "fmt_ccase" manual, you'll find it over there:
From the
fmt_ccase
man page:So for a composite baseline:
could do the trick, except it will print only the dependent baselines on one line, each name separated by space, and without their associated component name.
So you need to parse that output, and for each baseline name, do a:
(Or, if your naming convention for baselines allows for it, a simple:
would be easier!)
Actually, the OP samselvaprabu took the last proposition to grep what he needed from the initial output. His grep is better than my proposal, because it doesn't depend on the Baseline naming convention, but on the PVob name of said baselines: