Duimon recommended a program called PowerGrep to me some time ago for editing .slangp files in bulk. I use it all the time now, but need some help with this one if there are any Grep Gurus out there.
I am able to do a search and delete, but what I don’t know how to do is search for lines in a file and then delete all text not included in the search matches… basically an inverse search and delete. Is it even possible? I need to delete everything in a big batch of files, except keep a few lines that I get search hits for.
Any advice on this is appreciated. It’s one of those things that will save me a bunch of time. Thanks.