文件内容第一列为时间戳
cat 文件 | awk ‘{print strftime("%F %T", $1/1000)}’
注:
%F Equivalent to %Y-%m-%d
%T The time in 24-hour notation (%H:%M:%S)
strftime函数文档
https://man7.org/linux/man-pages/man3/strftime.3.html
文件内容第一列为时间戳
cat 文件 | awk ‘{print strftime("%F %T", $1/1000)}’
注:
%F Equivalent to %Y-%m-%d
%T The time in 24-hour notation (%H:%M:%S)
strftime函数文档
https://man7.org/linux/man-pages/man3/strftime.3.html