シェルスクリプト コマンド置換 コマンド置換ではコマンド実行による出力をそのまま文字列に展開 func1() { echo "abc" return 0 } str=$(func1) echo $str