Re: Grep: Delete everything that doesn't match.

2022-11-14 Thread Kaveh
Hi Bill Michael said above that he has 1000s of files so needs to alter each file, not extract into one file. ;-) On Mon, 14 Nov 2022 at 16:22, 'Bill Walker' via BBEdit Talk < bbedit@googlegroups.com> wrote: > Micheal, > > > The Find options have an Extract button. I think that will do what

Re: Grep: Delete everything that doesn't match.

2022-11-14 Thread 'Bill Walker' via BBEdit Talk
Micheal, The Find options have an Extract button. I think that will do what you want. wiwal...@yahoo.com > On Nov 12, 2022, at 4:12 PM, Michael Kocher wrote: > > The problem with Extract is that it makes a new file, and I have a thousands > of files. Is there a

Re: Grep: Delete everything that doesn't match.

2022-11-12 Thread Kaveh
Could you paste a representative sample of the original? On Sun, 13 Nov 2022 at 00:24, Michael Kocher wrote: > The problem with Extract is that it makes a new file, and I have a > thousands of files. Is there a way to do it within the original file? > > On Saturday, November 12, 2022 at 3:23:13

Re: Grep: Delete everything that doesn't match.

2022-11-12 Thread Michael Kocher
Great! Thanks so much. I was able to get something workable from this. > On Nov 12, 2022, at 6:39 PM, Bruce Van Allen wrote: > > It sure looks to me like Text -> Process Lines Containing… could do what you > want. > > 1. Choose Find lines that do not contain: > > 2. Put the pattern you

Re: Grep: Delete everything that doesn't match.

2022-11-12 Thread Bruce Van Allen
It sure looks to me like Text -> Process Lines Containing… could do what you want. 1. Choose Find lines that do not contain: 2. Put the pattern you mention in the box. 3. Choose Delete matched lines 4. Make sure Copy to clipboard and Copy to new document are NOT checked. 5. Click Process

Re: Grep: Delete everything that doesn't match.

2022-11-12 Thread Michael Kocher
The problem with Extract is that it makes a new file, and I have a thousands of files. Is there a way to do it within the original file? On Saturday, November 12, 2022 at 3:23:13 PM UTC-6 sie...@barebones.com wrote: > On 12 Nov 2022, at 16:09, Michael Kocher wrote: > > > I'm trying to use a

Re: Grep: Delete everything that doesn't match.

2022-11-12 Thread Rich Siegel
On 12 Nov 2022, at 16:09, Michael Kocher wrote: > I'm trying to use a multi-file search and replace using grep. I'm still > pretty new to grep and BBEdit and could use some help. > > I can isolate the text I want to keep using this: > > > Unfortunately, that's the content I want to keep. Is

Grep: Delete everything that doesn't match.

2022-11-12 Thread Michael Kocher
I'm trying to use a multi-file search and replace using grep. I'm still pretty new to grep and BBEdit and could use some help. I can isolate the text I want to keep using this: https://twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit