Created
June 6, 2013 07:26
-
-
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts `ls` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment