The command to find all the matching files in the current directory is
cleartool find . -type f -name “*.java” -branch “brtype(main)” -version “created_since(2014-09-22)” -exec “cleartool desc -fmt \”Version: %n\tComment: %c\n\n\” %CLEARCASE_XPN%” | findstr “commented string to be found”
- the example uses the main branch, you can replace it with any branch x by brtype(x)
- the example queries the checkins since 2014-09-22
- -fmt defined the output format of each matching element, feel free to customize it
- the “commented string to be found” could be any substring of the comment you entered.
- Note if you want to expand the find to all renamed and removed elements, you can use “find -all” instead of “find .”