Monday, June 10, 2013

#bashing multiple expressions

So to do a couple of cool stuff in bash use the [[ many-expressions ]] brackets not the [ expression ]
For example one can do multiple expressions
if [[ foo || bar || baz ]] ; then
  ...
fi
For more info look at this stackoverflow

No comments:

Post a Comment