Question & Answer
Question
How do you search for and list UCM Baselines in an IBM Rational ClearCase PVOB that has been created since a particular date and time?
Answer
One method for creating such a list is to use the "cleartool find" command in conjunction with basic Perl commands.
Example:
- From the operating system command prompt navigate to the PVOB in question.
- Using the following command formats to create a list of baselines created since a given date:
- Windows:
- UNIX and Linux:
cleartool find -all -kind baseline -print | ^
ccperl -pe "s/^/des -fmt '%Nd %n\\n' /" | ^
cleartool | ^
ccperl -ne "push(@a, $_) if ($_ ge ' yyyymmdd.hhmmss'); END{print sort @a;}"
cleartool find -all -kind baseline -print |
Perl -pe 's/^/des -fmt "%Nd %n\\n" /' |
cleartool |
Perl -ne 'push(@a, $_) if ($_ ge " yyyymmdd.hhmmss"); END{print sort @a;}'
Note: yyyymmdd.hhmmss represents the year, month, day, hours, minutes and seconds.
If you do not need to specify a time which includes hours, minutes and seconds you must enter
zeros in place of hhmmss.
For example: 20100815.000000
Related Information
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21441502