You can pass the output of grep to awk.
grep -E '*[[:space:]]+FIN[[:space:]]+([^)]+?)') myfile | awk '{print $2}'
I'm not sure how to do this with grep alone, as it is not suitable for this particular use case. Since you are on a platform with grep, use the pipes to your advantage when you can have one team to solve part of the problem and another team in the other part.
source share