What does the asterisk represent in this statement?

Others
<em>#!/usr/bin/env bash</em>
case $num in
	1)
	echo "one"
	; ;
	2)
	echo "two"
	; ;
	*)
	echo "a mystery"
	; ;
esac
  •  a case that matches any value, providing a default option if nothing else catches that value
  •  a case only for what happens when the asterisk character is passed into the script
  •  the action of all of the other cases combined together
  •  an action that is taken for any input, even if it matches a specified condition

Leave a Reply

Your email address will not be published.