Is it possible to grep the result of a command spawned by xargs?
As an example I am trying the following command
findbranch prj-xyz -latest|sed 's/^\(.*\/.*\)@@.*$/\1/'|xargs -I {} cleartool lsh {}|grep -m 1 'user'
but seems like grep is executing on the entire result set returned by findbranch, rather individual results of lsh
As an example what I want from above is, for every file returned by findbranch and sed combined I would like to find that version which was last modified by a certain user.
Note If in case it is of a concern, findbranch is an internal utility.