I have been reading all the similar threads around but I can't manage to do that.
What i need to achieve is fairly easy (I think) but I cant get it to work.
I have a log file (*.DMP) where I need to find for several strings like this one:
Successfully changed user to XXX
where XXX is the name i need to output..
There might be several occurences of this line but I just need to grab the last one and echo this var.
Any help would be great. Thanks in advance!