📝 Edit on GitHub
Pattern matching
See also globbing.
Check if value matches pattern.
Starts with
Example:
[[ "$OSTYPE" == "darwin"* ]] && echo 'macOS!'