如何在unix中的两个clearcase ucm标签之间获取签到文件列表 [英] How to get the list of the checkin files between two clearcase ucm lables in unix
问题描述
在clearcase UCM中,如何获取Linux中两个基准之间的签入文件列表?
In clearcase UCM how to get the list of the checkin files between two baselines in linux ?
我正在使用shell脚本,但是在运行以下脚本时却被删除了命令?
I am using the shell script but it's getting strucked while running the below command ?
如何将输出重定向到文本或Word文件?
How to redirect the out put to a text or word file ?
cleartool diffbl -act- ver label1 label1 >> data.txt
cleartool diffbl -act -ver label1 label1 >> data.txt
推荐答案
注意:如果基线已满,则可以使用find查询,该查询可能会重定向通过 -print
选项可以更好地显示文本文件。
请参见 查找标签之间的更改。
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".
否则,技术说明 cleartool find命令的其他示例"提到:
Otherwise, the technote "Additional examples of the cleartool find command" mentions:
在运行cleartool find命令时,文本可以在屏幕外显示,但是您可以将输出重定向到文本文件。要将数据捕获到文件中以供脚本(或其他程序)查看,打印或使用,可以按如下所示重定向输出:
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:
要获取STDOUT信息,请添加 > file_name.txt
"到命令字符串的末尾:
To get the STDOUT information add " > file_name.txt
" to the end of the command string:
cleartool find . -all -print > c:\out.txt
同时获取两个
STDOUT
和STDERR
信息添加> file_name.txt 2>& 1
"到命令字符串的末尾:
To get both
STDOUT
andSTDERR
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
这篇关于如何在unix中的两个clearcase ucm标签之间获取签到文件列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!