read -p "ok? (y/N): " yn; case "$yn" in [yY]*) echo hello;; *) echo "abort";; esac 'yno'ã¨ãåãä»ããã¨ãä¸æåç®ãyãªã®ã§helloãåºåããã¾ãã åè: ã·ã§ã«ã¹ã¯ãªããã§YåNã®å ¥åã®ã¿åãä»ããæ©è½ãä½ã åè: BASHã·ã§ã«ã¹ã¯ãªããã§ããã¼å ¥åå¾ ã¡ãããã³ãããå®è£ ãã å ¥ååä»ä¸æåã®ã¿ ä¸æåã ããyã¨ãnã¨ãæ¼ãããå³åº§ã«æ¬¡ã«é²ãã§ã»ããã¨ããreadã³ãã³ãã®ãªãã·ã§ã³-nã使ç¨ãã¾ãã Enterã ãæ¼ãã¨$ynã®ä¸ã空ã«ãªãã®ã§ãabortã¨è¡¨ç¤ºããã¾ãã
{{#tags}}- {{label}}
{{/tags}}