The cleartool has many facets, one of which is find. The syntax of clearcase’s version of find is similar to that of GNU’s find with a couple of clearcase additions that allow you to search specific clearcase attributes. It is beyond the scope of this document to describe GNU’s find. Here are a couple of Hints and Tricks to get cleartool find to give you something useful. For the purposes of the examples my user name will be mrn. Remember that user names are case sensitive. Find files created by me:
cleartool find . -name “*” -ver “created_by(mrn)” -printFind files created by me after 29 May 2009:
cleartool find . -name “*” -ver “created_by(mrn) && created_since(29-May-2009)” -printFind files created by me between 29 May 2009 and 6 June 2009 inclusive:
cleartool find . -name “*” -ver “created_by(mrn) && created_since(29-May-2009) && !created_since(6-Jun-2009)” -print
Thanks for posting this.
The ‘cleartool find’ command is a wonderful beast. But most often I want to do something simple like you’ve described.
Comment from: Avinash [Visitor]
Form is loading...