Skip to content

Instantly share code, notes, and snippets.

@kojiromike
Created July 12, 2014 23:54
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 kojiromike/cfe1f08a3b0c7b203395 to your computer and use it in GitHub Desktop.
Save kojiromike/cfe1f08a3b0c7b203395 to your computer and use it in GitHub Desktop.
Show that globstar matches files in the working directory
19:53 ~ $ mkdir -p foo/bar
19:53 ~ $ cd foo
19:53 ~/foo $ touch xyzzy.x bar/quu.x
19:54 ~/foo $ shopt -s globstar
19:54 ~/foo $ echo **/*.x
bar/quu.x xyzzy.x
@kojiromike
Copy link
Author

19:54 ~ $ echo $BASH_VERSION
4.3.18(1)-release
19:55 ~ $ uname -mprs
Darwin 13.3.0 x86_64 i386

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment