Skip to content

Instantly share code, notes, and snippets.

@JoshCheek
Created June 23, 2011 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshCheek/1041942 to your computer and use it in GitHub Desktop.
Save JoshCheek/1041942 to your computer and use it in GitHub Desktop.
showing output of glob pattern
# for comment on http://stackoverflow.com/questions/6449373/wildcard-string-matching-in-ruby/6449534
$ ls -l
total 0
-rw-r--r-- 1 joshuacheek staff 0 Jun 23 00:09 hannah
-rw-r--r-- 1 joshuacheek staff 0 Jun 23 00:09 john
-rw-r--r-- 1 joshuacheek staff 0 Jun 23 00:09 john is awesome
-rw-r--r-- 1 joshuacheek staff 0 Jun 23 00:09 johnny
$ echo *hn
john
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment