> On May 07, 2023, at 14:17, severdia <[email protected]> wrote:
> 
> I have a lot of XML files and I'd like to grep a string and use Extract to 
> copy that string from each file to a single CSV file. Is there a pattern for 
> including the filename the strong was extracted from in the results? My goal 
> is a single text file (comma separated) that contains the string found from 
> each XML file.

Hey Severdia,

I'm not aware of any tokens that can return the file name or path during a 
multi-file search...

However – to get what you need you can:
Do a multi-file search (Cmd-Shift-F).
Copy the contents of the search results window.
Paste that into a new document.
Do a little post-processing.
--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/C62B03EE-BB72-470E-A9CA-6140515996F1%40gmail.com.

Reply via email to