Skip to content

Instantly share code, notes, and snippets.

@richadams8
Created June 8, 2015 19:56
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 richadams8/9d7a8ac53bba58f5301c to your computer and use it in GitHub Desktop.
Save richadams8/9d7a8ac53bba58f5301c to your computer and use it in GitHub Desktop.
Better at searching for instances with given keywords
jlist () {
GREP_COMMAND="jim instance list "
for arg in $@; do
GREP_COMMAND=${GREP_COMMAND}"| grep $arg "
done;
echo $GREP_COMMAND
eval "$GREP_COMMAND"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment