We can know the information about a client using
p4 client -o *clientname*
but it gives a lot of information. Is there any way to get only the view of the client using command line?
We can know the information about a client using
p4 client -o *clientname*
but it gives a lot of information. Is there any way to get only the view of the client using command line?
Copyright © 2021 Jogjafile Inc.
You can use p4's
-z tag
option to get annotated output useful for scripting. From there, you can extract the lines that start with... View
usinggrep
andcut
:p4 -z tag client -o | grep -E '^[.]{3} View' | cut -d ' ' -f 3-
(And if you're using Windows, you can obtain
grep
andcut
implementations from UnxUtils.)