I have a file with below contents
ramaabnnc
ssddwer....
tool error
I need to delete exactly 10 lines above the matched line. Lets say I match for "toolerror" I need to delete 10 lines above that in the files..
Any pointers on doing the same will be helpful.