私はクエリの最適化を探していますが、IBMはそれについてはあまりよく分かりません。 要するに、私たちは非常に大きなボブを持っています.2つの日付の間に行われた変更をすべて一覧にしたいのですが、あなたのことは一番速いのですが、改善が見られますか?Cleartoolコマンドのパフォーマンス:lshistoryまたはfind -exec
方法1:
cleartool find -avobs -type f -element '(created_since(1-Jun-2016) && !created_since(1-Sep-2016))
&& (Element_Type==""Program"" || Element_Type==""Output"" || Element_Type==""Data"")'
-ver 'created_since(1-Jun-2016) && !created_since(1-Sep-2016)'
-exec 'cleartool describe -fmt ""#Name:%Xn Date:%Nd User:%u Label:%1.400Cl Attributes:%a Version:%Vn Comment:%Nc \n"" $CLEARCASE_XPN'
>| test.txt
方法2:
cleartool lshistory -avobs -since 1-Jun-2016 -fmt '#Name:%Xn Date:%Nd User:%u Label:%1.400Cl Attributes:%a Version:%Vn Comment:%Nc \n' -nco -pname >| test.txt
ありがとうございました!
はあなたの助けをありがとう!あなたのコメントに基づいて私はクエリーを次のように変更しました:cleartool find -avobs -type f -element '(attr_sub(Element_Type、==、 "Output"))' -ver 'created_since(1 Jun-2016)&&!created_since( %Nnユーザー:%uラベル:%1.400Cl属性:%aバージョン:%Vnコメント:%Nc \ n "%Nnユーザー:%uラベル:%1.400Cl属性:%aバージョン:%Vnコメント: "$ CLEARCASE_XPN ' > | test.txt – M4hd1Pro
@ M4hd1よくできました!より視認性の高い答えをあなたのコメントに追加しました。 – VonC