How to get the list of the checkin files between two clearcase ucm lables in unix

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 07:36:55

问题


In clearcase UCM how to get the list of the checkin files between two baselines in linux ?

I am using the shell script but it's getting strucked while running the below command ?

How to redirect the out put to a text or word file ?

cleartool diffbl -act -ver label1 label1 >> data.txt


回答1:


Note: if your baselines are full, you could use a find query which might redirect in a text file better through the -print option.
See "Find changes between labels".

Otherwise, the technote "Additional examples of the cleartool find command" mentions:

REDIRECT OUTPUT TO A FILE:

When running a cleartool find command the text can run off the screen, but you can redirect the output to a text file. To capture the data to a file for viewing, printing or use by a script (or other program) the output can be redirected as follows:

To get the STDOUT information add " > file_name.txt" to the end of the command string:

cleartool find . -all -print > c:\out.txt

To get both STDOUT and STDERR information add " > file_name.txt 2>&1" to the end of the command string:

    Windows    -- cleartool find . -all -print > c:\out.txt 2>&1
    UNIX/Linux -- cleartool find . -all -print >& /tmp/out.txt


来源:https://stackoverflow.com/questions/9256649/how-to-get-the-list-of-the-checkin-files-between-two-clearcase-ucm-lables-in-uni

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!