Created
February 16, 2015 21:41
-
-
Save AKovtunov/fa94cf018c0366a3bbc9 to your computer and use it in GitHub Desktop.
Ruby file search mask
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
> Dir.entries "/" | |
=> [".", "..", "Home", "Libraries", "MouseHole", "Programs", "Tutorials", "comics.txt"] | |
Try: Dir["/*.txt"] | |
> Dir["/*.txt"] | |
=> ["/comics.txt"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment