Skip to content

Instantly share code, notes, and snippets.

@jhyland87
Last active February 24, 2017 18:18
Show Gist options
  • Save jhyland87/18ca309990ef553bae3790a537abc0ba to your computer and use it in GitHub Desktop.
Save jhyland87/18ca309990ef553bae3790a537abc0ba to your computer and use it in GitHub Desktop.
Just an example of how "Brace Expansion" can be useful
$ echo aws{cli,-{a{s,pigateway-importer},c{fn-tools,loudsearch},elastic{ache,beanstalk},mon,keychain,s{hell,dk-cpp,ns-cli}}}
awscli aws-as aws-apigateway-importer aws-cfn-tools aws-cloudsearch aws-elasticache aws-elasticbeanstalk aws-mon aws-keychain aws-shell aws-sdk-cpp aws-sns-cli
$ echo aws{cli,-{a{s,pigateway-importer},c{fn-tools,loudsearch},elastic{ache,beanstalk},mon,keychain,s{hell,dk-cpp,ns-cli}}} | tr ' ' '\n' | sort
aws-apigateway-importer
aws-as
aws-cfn-tools
aws-cloudsearch
aws-elasticache
aws-elasticbeanstalk
aws-keychain
aws-mon
aws-sdk-cpp
aws-shell
aws-sns-cli
awscli
$ brew install aws{cli,-{a{s,pigateway-importer},c{fn-tools,loudsearch},elastic{ache,beanstalk},mon,keychain,s{hell,dk-cpp,ns-cli}}}
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core, homebrew/dupes).
==> New Formulae
.. CUT ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment