terminal_prognosis

joined 1 year ago
[–] terminal_prognosis@alien.top 1 points 11 months ago (1 children)

You'll need to explain that to those of us who use Emacs for professional work. What fails for you? In particular, what fails that needs threading to be resolved?

[–] terminal_prognosis@alien.top 1 points 11 months ago

Networking activity is a prime example of something where threading is least likely to be a clearly superior solution. Heavy CPU use is where threading may be the superior choice and a single event-loop thread is not. IO waiting is not.

[–] terminal_prognosis@alien.top 1 points 1 year ago (2 children)

Emacs can run subprocesses just fine. I assumed you wanted a solution to a problem rather than an exercise.

With filenames:

for file in `find . -name "*.org"`; do sed -nr "s;.*notmuch:id:([^]\n]*).*$;$file: \1;p" "$file"; done
[–] terminal_prognosis@alien.top 1 points 1 year ago (5 children)
find . -name "*.org" -exec sed -nr 's/.*notmuch:id:([^]\n]*).*$/\1/p' {} \;