Cleartool: how to write the result of the find command to a text file

I am trying to find all the files in the gt.BridgeGov branch in my opinion

find \gtGov -all -version "brtype(gt.BridgeGov)" -print 

This statement works fine and lists all the files in the gt.BridgeGov branch. I get the list on the console, but I want to redirect the result to a text file.

I tried the following

 find \gtGov -all -version "brtype(gt.BridgeGov)" > myFile.txt find \gtGov -all -version "brtype(gt.BridgeGov)" >> myFile.txt 

It throws me an error cleartool: Error: Additional arguments: ">"

How to redirect the result to a text file?

-Update:

 find \gtGov -all -version "brtype(gt.BridgeGov)" -print > myFile.txt 

Tried this as well. Complete error. When I try.

 find \gtGov -all -version "brtype(gt.BridgeGov)" | tee myFile.txt cleartool: Error: Extra arguments: "|" Usage: find { pname ... [-depth | -nrecurse | -directory] | [pname ...] -all [-visible | -nvisible] | -avobs [-visible | -nvisible] } [-name 'pattern'] [-cview] [-user login-name] [-group group-name] [-type {f|d|l}...] [-follow] [-kind object-kind] [-nxname] [-element query] [-branch query] [-version query] {-print | -exec command-invocation | -ok command-invocation} ... 
+4
source share
1 answer

You are in a cleartool session.

not to do.

Go into a dos or shell session in your ClearCase view and type

 cleartool find ... > res.txt 

You will not have any problems redirecting the result of the cleartool command in this way.

Note that if you execute the cleartool find command in the dynamic root directory of the View ( M:\myDynView or /view/myView , ...), you won (t has the right to write directly to the specified root directory.

However, you can redirect your output to any file you want:

 cd /view/MyView cleartool find -all ... > /my/path/res.txt 
+3
source

All Articles