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.

2
  • While the link provided is UNIX specific its worth noting that this approach will work just fine on Windows under cmd.exe and PowerShell. Commented Jun 4, 2013 at 15:32
  • That's a nice approach but doesn't really lend itself well if there is any output other than the list of numbers. If the OP adds any type of prompt or error reporting it will never be seen since it gets redirected to the output file. Commented Jun 4, 2013 at 15:39