ASi

シェルスクリプトのログとエラー処理

(
(
// 処理
) && echo success. || echo fail.
) 2>&1 | tee log.txt