scripting problem ( KSh )

Hi all,

I want to find out last word in each line ...
suppose my file contains following lines ...

this is unix forum
here we share knowledge
it is very interactive

Now i need the output as :- ( the last word od each line )

forum
knowledge
interactive

Please help ,

Thanks in advance
Dhananjay

use like this

echo "this is unix forum" | awk '{print $NF}'

sed "s/.* \(.*\)/\1/" file