I am trying to find all the files under gt.BridgeGov branch in my view
find \gtGov -all -version "brtype(gt.BridgeGov)" -print
This statement works fine and list all the files under branch gt.BridgeGov. I am getting the list on console, but I want to redirect result to text file.
I tried the following
find \gtGov -all -version "brtype(gt.BridgeGov)" > myFile.txt
find \gtGov -all -version "brtype(gt.BridgeGov)" >> myFile.txt
Its throwing me an error cleartool: Error: Extra arguments: ">"
How can redirect the result to a text file?
-Update:
find \gtGov -all -version "brtype(gt.BridgeGov)" -print > myFile.txt
Tried this also 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} ...