Despite my requests for clarification, since I understand your question, I think you want to use p4 filelog
:
p4 -c <client-name> filelog ... > output.txt
This will result in lines such as:
//path/to/depot/file ...
for each file. If you only need the latest change, use
`p4 -c <client-name> filelog -m 1 ... > output.txt
source share