繰り返し実行するメンテナンススクリプトで、date >> /home/labex/project/maintenance.log を使うのはなぜですか?
date >> /home/labex/project/maintenance.log
実行時刻を追記するため、以前のログエントリを置き換えない
最新の日付を記録する前にファイルを切り詰める
以前のログ内容を date への入力として読み込む
date
date の標準エラーだけを取得する