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*

Cancel
2
  • 7
    It never actually occurred to me to use xargs this way. Still seems like a useful FAQ, though. Commented Dec 5 at 17:25
  • Please edit your question to contain a few lines of concise, testable sample input (the output of cmd) and expected output so we can see in the question some ways in which the command lines you show produce the wrong output. Commented 2 days ago