====== if ====== [[https://tex2e.github.io/blog/shell/bash-and-or|Bashのif文でANDやOR条件、&&や||演算子を使う]] [[https://shellscript.sunone.me/if_and_test.html|if 文と test コマンド]] $ if [ -e hell.go ]; then echo 'ari'; else echo 'nasi'; fi > nashi 同じ $ if test -e hell.go ; then echo 'ari'; else echo 'nasi'; fi > nashi