$ echo -e "$(date +%T).$((10#$(date +%N)/1000000))"
14:17:30.996
如果不加以10进制显示```10#```就会在达到999毫秒后失败
$ echo -e "$(date +%T).$(($(date +%N)/1000000))"
000144943: value too great for base (error token is "000144943")
完整的打印当前时间的脚本
#!/bin/bash
while true
do
echo -e "$(date +%T).$((10#$(date +%N)/1000000))"
done