How do I search for the content of files in a Perforce depot (P4V)?
Asked Answered
B

1

7

I am currently using Perforce version 2010.2. It appears that this version does not have an integrated search functionality that will go through the content of every single file. My current P4V version only allows me to search for filenames but not for content.

Any input on this would be much appreciated.

Thank you in advance.

Blond answered 9/5, 2012 at 15:34 Comment(0)
V
6

Try the 'p4 grep' command, added in release 2010.1, I believe.

Venturesome answered 9/5, 2012 at 18:44 Comment(3)
If that doesn't work for you, you can also look at a repository search tool. I think Black Duck has one that works with Perforce.Daffodil
Example: p4 grep -n -e "my_regex_pattern" //my_depot/.../*.extMezuzah
Just for convenience: perforce.com/manuals/v18.1/cmdref/Content/CmdRef/p4_grep.htmlNemeth

© 2022 - 2024 — McMap. All rights reserved.