#!/usr/bin/env bash set -eu -o pipefail x='some-test' case "${x}" in *'_'*|*'-'*) echo "The string contains _ or -" ;; *) echo 'No pattern matched' ;; esac