Phil for Humanity

A Guide for the Survival of Humankind, and Improving the World, Society, and Yourself!


Popular Articles
  • Reasons For and Against
    Human Cloning
  • Globalization of the USA
  • The Pros and Cons of
    Capital Punishment
  • World's Stupidest Game

  • Latest Articles

  • Unknown Mushrooms 2
  • Easier Programming Language
  • Managing is Common Sense
  • Improve Cereal Packaging
  • Subscribe to RSS Feed

  • Main Menu

  • HOME
  • SAVE HUMANITY (52)
  • HELP THE WORLD (102)
  • IMPROVE GOVERNMENTS (99)
  • PERSONAL DEVELOPMENT (272)
  • COMPUTER HELP (130)
  • ARCHIVE (all articles)
  • SEARCH THIS SITE
  • CONTACT US
  • DISCLAIMER
  • PLEASE HELP: DONATE

  • ClearCase Support: Displaying Comments


    I am quite often asked how to display ClearCase comments from the command line. The basic command is this:

    cleartool describe -fmt 'Name:\t%En\nComment:%c' PATH_OF_ELEMENT_OR_VERSION

    This command will let you see the command of any comment for any version in the version tree or whatever version your config spec is configured to access. For example, if you wanted to run this command on an element:

    $ cleartool describe -fmt 'Name:\t%En\nComment:%c' filename.txt
    Name: filename.txt
    Comment:This is the comment of the version that my ClearCase View is accessing.


    Alternatively, you can run it on a specific version, such as:

    $ cleartool describe -fmt '\tName:%En\nComment:%c' filename.txt@@/main/1
    Name: filename.txt
    Comment:This is the comment of version /main/1 of element filename.txt.


    by Phil B.

    Related Articles
     » ClearCase Support: Changing Comments
     » ClearCase Support: Finding Branches on Version Trees
     » ClearCase Support: Finding Labeled Versions







    Copyright © 2006-2010, Phil for Humanity. All Rights Reserved.