No that doesn't hel: "Process Lines Containing..." just reuses the
same grep pattern.

The pattern grabs the right chunks of text (there are actually 23)
from the original file.

I just can't find a text utility wi BBEdit that'll pipe each chunk off
into its own text file.

I guess I'll hv to figure out a bash script to do this. Awk is the
obvious way forward. My inkling is output Awk to a bash array, then
get the index, then pick out each element by its number and cat it off
to its own numbered file. Or use the -exec option.

But it wld be easier directly in BBEdit.

Ptarmigan.

On Jan 10, 2:47 pm, Semper Fidelis <[email protected]> wrote:
> Won't the function "Process Lines Containing..." from the Text menu do this 
> for you if you check "Use grep" and "Copy to new document"?
>
> On Jan 10, 2010, at 6:27 AM, Ptarmigan wrote:
>
> > I have inserted the word CODE at intervals in a file
>
> > I have grepped the file using : CODE(?s).*?(?=CODE)
>
> > This grep selects chunks of the file as required. Great.
>
> > However, I am not sure how to get each chunk into a separate .txt file
> > via BBEdit's text processing tools. I don't wanna do this manually.
>
> > Suggestions ?
>
> > Ptarmigan
> > --
> > You received this message because you are subscribed to the
> > "BBEdit Talk" discussion group on Google Groups.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/bbedit?hl=en
> > If you have a feature request or would like to report a problem,
> > please email "[email protected]" rather than posting to the group.
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.

Reply via email to