I am working on a Python script, in that I am printing all stream information of perforce using:
p4 -ztag stream -o //streams/xyz
output looks like:
Stream //streams/xyz
Update 2015/03/12 16:05:33
Acessed 2014/03/14 09:55:38
Owner abc
Parent //streams/klm
Remapped0 fgh/hjk....
Remapped1 uhk/dtj...
Remapped2 hjjk/.. etc
this way output is coming.
I am calling from python as :
subprocess.Popen(['p4','-ztag','stream','-o',//streams/xyz], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0]. Now, i want to display only Path fields not the rest i.e owner, update, access, etc. So, how will i get this?
Now I want to have the information regarding only one field named as "Remapped" not the rest like owner, Parent etc.
So, How do I use the filter
command to get only the specific field?