I have a directory of many
*.org files. I want to select a section of text out of all these org files.
There is a
* Learnings header in the content. I would like to select from the
* Learnings header to the end of the file.
My current attempt is
find ~/org/journal -name "*.org" -type f | xargs sed -n -e '/\*\ Learnings/,$p'
This however just outputs one concatenated stream.
Expected output would be a stream of the content after the
* Learnings header for each file returned from the find
also the solution does not have to use