```bash # prefixからはじまるかどうか if [[ "${str}" == "prefix"* ]]; then exit 0 fi ```