date \
=====; Script;} >> Log fileExplanation below { ●●●; ▲▲▲; } Combine command output in parentheses and spaces, separated by semicolons
echo =====`date`===== The current time is displayed by enclosing it in "=". Example: ===== Wednesday, August 19, 2020 15:22:14 JST =====
>> Redirect to add output
=====Wednesday, August 19, 2020 15:59:01 JST=====
(The output result of the script goes here)
Recommended Posts