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

  • Pessimism versus Realism
  • The Pros and Cons of Negativity
  • Demote Managers
  • Grow Plateau and Go
  • Subscribe to RSS Feed

  • Main Menu

  • HOME
  • SAVE HUMANITY (34)
  • HELP THE WORLD (82)
  • IMPROVE GOVERNMENTS (68)
  • PERSONAL DEVELOPMENT (172)
  • COMPUTER HELP (37)
  • ARCHIVE (all articles)
  • 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.


    If you have any other ClearCase questions, please do not hestitate to contact me for free advice.

    by Phil B.

    Related Articles
     » ClearCase Support: Finding Branches on Version Trees
     » ClearCase Support: Finding Labeled Versions
     » ClearCase Support: How to Find Checked Out Elements







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