Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用几个使用纪元的文本文件,我想要一个 bash 脚本,它将扫描特定文件的纪元并将其作为标准时间输出另一个文本文档。
在 Linux-BASH 中:
HUMAN_READABLE=$(echo $myTIMESTAMP | gawk '{print strftime("%c", $0)}') echo $HUMAN_READABLE