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.

4
  • 3
    What do you expect ls | echo to do? why not simply run ls?
    – theomega
    Commented Sep 16, 2010 at 13:46
  • 19
    I used the simplest example that illustrates my point. I actually encountered this problem when I was trying to make a one-liner that would show git objects in the object store and their type. So, I piped object ID's to git cat-file, but it just didn't work. Apparently, echo has the same behaviour, so I used it as an example. Commented Sep 16, 2010 at 14:10
  • also look at the -n command for xargs, it says how many arguments to put on subcommand. ` ... | xargs -n1 git cat-file` Commented Sep 16, 2010 at 22:05
  • unix.stackexchange.com/a/503197/130767 Commented Mar 10, 2021 at 2:29