p4 print (graph)

Write a repo file to standard output.

Syntax

p4 print [-o localFile -q -m max] file ...

Syntax conventions

Description

Retrieve the contents of a repo file to the client's standard output. This command does not sync the workspace with the graph depot. If the file is specified using client syntax, Perforce uses the client view to determine the corresponding repo file.

Options

-m max

Print only the first max files.

-o outfile

Redirect output to the specified output file (outfile) on the local disk.

Multiple files can be written by using wildcards in the localFile argument that match wildcards in the depot (FileSpec) argument.

For example:

To print the contents of a directory and directories under that directory, use the ... wildcard:

$ p4 print -o c:/tmp/dev-copy/... //repo/dev/...

To print all files that match readme.txt or readme.pdf, you might specify:

$ p4 print -o readme.* //repo/readme.*

-q

Suppress the one-line file header normally added by Helix Server.

Usage Notes

Can File Arguments Use Revision Specifier? Can File Arguments Use Revision Range? Minimal Access Level Required

Yes

Yes

list protection and read permission