Skip to content

Instantly share code, notes, and snippets.

@zirosas
Created June 6, 2013 07:26
Show Gist options
  • Save zirosas/5719892 to your computer and use it in GitHub Desktop.
Save zirosas/5719892 to your computer and use it in GitHub Desktop.
The command output string is sent to the operating system as a command to be executed (under windows operating system, we have sent the dir command), whereupon the output of the command (dir on a command window would display all the files and sub directories in your folder) is then displayed by puts. On Linux and Mac, you can instead do:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment