Do you mean the 3rd and 4th fields on the records that get through grep?
That could be achieved with:
Code:
grep <whatever> | cut -d'|' -f3,4
it could also be down in awk with something like:
Code:
awk -F'|' '/pattern/ {$3, $4}'
sed could do it too, but I think that would be a little more complicated.