I have one script which gave final output as the below statment.
Successfully added Nomination Petition Manifest to the Content Manager.
Now i want a sed statement which will search for this statement in any given file and print only Nomination Petition Manifest. I don't want to hardcore the value like using awk
Thanks for the reply Frankiln but i already tried this .I know its working but the thing is that iam not sure that this line will be having a 3 word report or 4 thats why iam searching for something which is in between the entire line.It should print in between added and to of this line.It may be a 3 words or 4 words etc.
Regarding the difference with the sed command: Your original sample contains a trailing dot, which DGPickett's suggestion takes into account. Replace \.$ with .* and it should work.