in reply to Re^3: how to find last word match ?
in thread how to find last word match ?

perl -e 'print((grep/Baki/,<>)[-1])' file.txt