org-ql would make this pretty easy, I think. Use an org-ql query to select entries, and for the :action function, use a simple function that copies the entry or subtree and yanks it into a buffer. Then save that buffer to a file.
- Exporting agendas as org-mode files? John Sturdy
- Re: Exporting agendas as org-mode files? Adam Porter
- Re: Exporting agendas as org-mode files? Mikhail Skorzhinskii
- Re: Exporting agendas as org-mode files? Adam Porter
- Re: Exporting agendas as org-mode files? John Sturdy