【发布时间】:2017-03-21 23:14:11
【问题描述】:
我在 Linux 命令行上,我有包含以下内容的日志文件
Subscription Service Shutdown at 9:59PM UTC
Subscription Service Restarted at 11:57PM UTC
我想在每一行的时间戳之前添加日期
Subscription Service Shutdown at 01 Oct 2016 9:59PM UTC
Subscription Service Restarted at 01 Oct 2016 11:57PM UTC
【问题讨论】:
-
你尝试了什么?
-
您正在尝试添加已知字符串
01 Oct 2016或当前日期? -
我将添加已知字符串