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.

9
  • 7
    That's serious slickery...and I like it!
    – spyle
    Commented Jan 30, 2015 at 21:14
  • 4
    Now how, in turn, can I redirect the output to another variable? Commented Mar 12, 2015 at 1:46
  • 1
    The output is in STDOUT, so you should be able to redirect output from the command to anywhere you like just like a regular command. I haven't tested this though. Commented Jul 21, 2015 at 3:10
  • 2
    Does not work with /bin/sh.
    – SamK
    Commented Oct 11, 2018 at 14:47
  • 1
    good answer, you can also redirect to a real file and cat it later if you want portability of shells Commented Feb 8, 2019 at 9:40