clearcasecleartool

How to save cleartool diff file


Used rcleartool> diff -g -pred myfile.xml to get the file differences grahically. But is there a way to save this diff file? For me the file save button is disabled. Any hints?


Solution

  • I would start by omitting the -g (-graphical) optin of the diff command: that should yield a text result, that you can easily redirect to a file for saving its result.

    rcleartool> diff -pred myfile.xm > res
    

    You could do so from a regular CMD/bash session as well using rcleartool directly:

    rcleartool diff -pred myfile.xm > res
    

    See also "cleartool: how to write the result from command find to a text file".