Linux上获取文件的最后修改时间的毫秒数

用linux指令获取文件最后修改时间的毫秒数
echo $(stat hs_err_pid3265.log|head -n 7|tail -n 1)|cut -d “.” -f2|cut -d " " -f1
echo $(stat hs_err_pid3265.log|head -n 7|tail -n 1)|cut -d “.” -f1|cut -c9-
echo ( ( (( (((date -d ‘2020-04-10 13:05:56’ +%s%N)/1000000))
date -d ‘2020-04-10 13:05:56’ +%s
数值相加命令:echo 1+1|bc
echo $(stat 文件名|head -n 7|tail -n 1)|cut -d “.” -f2|cut -d " " -f1
Linux上获取文件的最后修改时间的毫秒数_第1张图片

你可能感兴趣的:(linux)