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.

5
  • why not using xargs? Commented Mar 27, 2021 at 6:41
  • @cregox Because that's not the question? Commented Mar 27, 2021 at 11:52
  • then you don't have to use vim, at very least! 😁 Commented Mar 31, 2021 at 3:29
  • @cregox I think the question is really about the differences between piping and command substitution. The find part is just a dummy command to produce example output, as a proof of concept. They don't necessarily want to pipe the output of find. Commented Mar 31, 2021 at 4:11
  • no matter how i look at it, i still find it very misleading to point the issue in his instance might be with vi, rather than with the difference between piping and command expansion, specially when xargs is specifically made to deal with this. Commented Mar 31, 2021 at 4:31