Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • Many thanks. I had been close, but reading a comment elsewhere on the inefficiency of -exec ... {} \; (which is the only syntax I knew) put me off. I see how -exec ... {} + can remove that problem. As I'm less familiar with xargs' -a flag (and also <(cmd)) I came up with find . -name '*.txt' -type f -exec grep -lZ zod {} + | xargs -o0r vi -p. I will try to use the modern $(...) syntax elsewhere (this was also persuasive), and maybe look into Zsh. Commented May 22, 2025 at 10:06