Jump to content


Check locations of files in the Perforce depot


  • Please log in to reply
3 replies to this topic

#1 ITSupport-ORTEC

ITSupport-ORTEC

    Member

  • Members
  • PipPip
  • 11 posts

Posted 14 May 2019 - 08:33 AM

Hi,

We have several p4.protect files on different locations in the depots. I am looking for a command that will give me the locations of these p4.protect files but only if they contain account X. I will rename the account X to XX with command p4 rename user. After the account rename, I will change the account X to XX in all the p4.protect files.

Is there a command Perforce with which I can get this information?

#2 Dave Foglesong

Dave Foglesong

    Member

  • Members
  • PipPip
  • 12 posts

Posted 14 May 2019 - 06:20 PM

I don't know how expensive this would be on a very large system, but "p4 grep" would do it. Something like:

p4 grep -i -e somenamehere //depot/.../p4.protect

#3 ITSupport-ORTEC

ITSupport-ORTEC

    Member

  • Members
  • PipPip
  • 11 posts

Posted 19 June 2019 - 07:59 AM

Hi dave.foglesong.

Thanks for the reaction and your answer. I forgot to tell you that we use Windows.
I was able to check all the p4.protect files myself. My problem is solved.

#4 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 846 posts

Posted 19 June 2019 - 04:15 PM

FWIW, "p4 grep" works on Windows.  :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users