Created
June 1, 2016 07:22
-
-
Save anonymous/9e4cb4287c06f3bb6980dda73f86954e to your computer and use it in GitHub Desktop.
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
$ find . -type f -exec echo {} + | |
./a/a/x ./a/b/c/x ./a/c/x | |
$ irb | |
irb(main):001:0> Dir.glob("*") | |
=> ["a"] | |
irb(main):002:0> Dir.glob("*/*") | |
=> ["a/a", "a/b", "a/c"] | |
irb(main):003:0> Dir.glob("**/*") | |
=> ["a", "a/a", "a/a/x", "a/b", "a/b/c", "a/b/c/x", "a/c", "a/c/x"] | |
irb(main):004:0> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment