I've a file which contains list of movie names and their release year. I want to list out all release years. Specifically my file looks like below
TDKR(2012) Vicky Cristina Barcelona (2008) ...
I tried grep with regex as follows
grep "^.*\\([0-9]*\\)$" movie.txt
and it works but it is printing entire line I want only years. Can I do it with