moreutils includes ts which does this quite nicely: command | ts '[%Y-%m-%d %H:%M:%S]'. It eliminates the need for a loop too, every line of output will ...
確定! 回上一頁