4

In clearcase I want to list the files /file versions checked in during the last 2 days. Can anyone help me with the command or script for the same.

Suresh
  • 41
  • 1
  • 2

1 Answers1

3

You will find plenty of cleartool find examples, including:

"find all file versions created since a certain date"

List all the files versions below the current directory created since a certain date,

cleartool find . -type f -version "created_since(01-Mar)" –print

Note: Add the –follow options if you want to follow any symbolic links that are present.

See the query_language man page for the date format.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Just to clarify on this one VonC - you're saying that although the age in days parameter is available in the output format - you can't directly query against it - instead you have to reply on a date. (ie A query like "created_since(today - 2)" is not available.) – hawkeye Jan 22 '13 at 01:41
  • 1
    @hawkeye yes, the date.time parameter is `date.time | date | time |now` and doesn't support operation relative to it (like `today - 2`) – VonC Jan 22 '13 at 07:05