I have following type of text pattern in a text file on Linux. I need to get only last part of this text. How can I get that?
tmk.mfg.pref.ZPreferes::getKey
com.sun.star.uno.SCompentCont::getSage
com.sun.star.lang.XMultiComponentFactory::createInstanceWithContext
I need only last part of each line i.e. getKey, getSage, etc. Can anyone tell me how to get it with cut or any other command.
Thanks in advance.
One liner bash script: