The cat command retrieves the contents of a particular version of a file element from depot storage in the AccuRev repository. Exception: if you omit the
-v option, it uses the contents of the file in your
workspace tree (on the client machine) rather than going to the repository (on the server machine).
cat displays the data — i.e. sends it to the
stdout device. You can use ordinary command-shell program techniques to pipe or redirect the data.
Display the version of file foo.c that is currently used by stream
shell_john:
Display the version in stream gizmo_dvt_derek of the file whose element-ID is
4056:
If version 6/2 of mylink pointed to a file
comment.txt that contained
//10-Jan-2013 when the link was created, but the latest version now contains
//10-Nov-2013, the command returns
//10-Nov-2013. Even if
mylink has a later version pointing to a different file, the command will return the contents of the latest version of the file pointed to by version 6/2.