The use case here is log parsing. So i have a log with a lot of information
about a lot of objects. I want to strip everything except the information
about one specific object, so i want to filter the file showing only the
lines that contain a specific string.
If i can do that, then i don’t even have to pump it into a separate file.

Makes sense?

On Fri, Jun 23, 2017 at 9:23 AM, Patrick Woolsey <[email protected]>
wrote:

> First, you can save a couple of steps by using File -> Export as Text to
> create a file directly from the search results.
>
> Next, though there is no option to omit the file & line number, you can
> easily strip that info via an appropriate grep search & replace, and, if
> you expect needing to do so often, you can either
>
>  a) save the search & replace pattern via the Saved Patterns (g) popup
>     within the Find or Multi-File Search windows, or
>
>  b) create a _text factory_ and add a suitable 'Replace All' action,
>     then save that factory into the "Text Filters" subfolder of BBEdit's
>     app support folder and invoke it via Text -> Apply Text Filter ->
>     [Your_Filter_Name].
>
> Beyond that, may I ask what you plan to do with the saved search results,
> e.g. are they purely archival or how else do you wish to transform them?
>
>
> Regards,
>
>  Patrick Woolsey
> ==
> Bare Bones Software, Inc.             <http://www.barebones.com/>
>
>
>
>
> On 6/23/17 at 10:01 AM, [email protected] (Ton Machielsen) wrote:
>
> Hi all!
>>
>> Just started with BBEdit.
>>
>> How do i export search results into a new document? Currently i do this:
>>
>> Search
>> Copy Search results
>> Open new document
>> Paste
>>
>> Problem here is that in front of every line i get the filename and line
>> number where BBEdit found what i was searching for. I want to eliminate
>> that.
>>
>> Any ideas?
>>
>> Thanks,
>>
>> Ton.
>>
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or would like to report a problem, please email
> "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
> --- You received this message because you are subscribed to the Google
> Groups "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/bbedit.
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to