HackerTrans
トップ新着トレンドコメント過去質問紹介求人

a1a1a

no profile record

コメント

a1a1a
·4 年前·議論
One of my favorite shell script snippet is prepending timestamp to every output with the help of ts command of moreutils package, meanwhile write to log file at the same time: https://unix.stackexchange.com/questions/26728/prepending-a-...

exec &> >( ts '[%Y-%m-%d.%H:%M:%S] ' | tee ${LOGFILENAME} )