Jump to content


Check locations of files in the Perforce depot


  • Please log in to reply
1 reply to this topic

#1 ITSupport-ORTEC

ITSupport-ORTEC

    Newbie

  • Members
  • Pip
  • 9 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

    Newbie

  • Members
  • Pip
  • 9 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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users