View in #code on Slack
@bob.w: Okay, my brain is completely blown this morning. Just discovered that I can hack the output of the p4
commandline using the fun documented flag -F
So now I can do p4 -F %depotFile% files -e //depot/...some_pattern... | p4 -x - -F %localPath% where
to get the local paths of all files matching some depot pattern
No more piping into bullshit utilities to reformat the string for me
@bob.w: A fun tip p4 -e <some_command>
will actually structure the output with the various bits of %thing%
called out so you know what you can actually do with p4 -F
p4 help undoc
lists all the magic bullshit they don’t put in the normal documentation
https://community.perforce.com/s/article/15148