Perforce Command Reference:   [Index]  [Prev] [Next]


p4 print

Synopsis

Retrieve a depot file to the standard output

Syntax

p4 [g_opts] [ -q ] file ...

Description

Retrieve the contents of a depot file to the client's standard output. The client's gotten list is not affected. If file is specified as a client file name, the client view is used to find the corresponding depot file. The -q flag suppresses the initial line that displays the file name and revision.

If the file argument includes a revision specifier, then the given revision is printed. Normally, the head revision is printed.

If the file argument includes a revision range specification, then only files selected by the revision range are printed, and the highest revision in the range is the one printed.



Perforce Command Reference:   [Index]  [Prev] [Next]


Copyright 1998 Perforce Software.
Contact us at [email protected]
Last updated: 06/14/98