Algumas outras maneiras:
-
sed
sed 's/.*(\(.*\))//' file
-
perl
perl -pe 's/.*\((.*)\)/$1/' file
ou
perl -lanF"[()]" -e 'print $F[1]' file
ou
perl -pe 's/.*\((.+?)\).*/$1/;' file
-
awk
awk -F"[()]" '{print $2}' file
-
shell
while IFS="()" read a b; do echo "$b"; done < file