我已经测试了我需要的格式,但是我无法获得回显输出,请尝试将引号放在不同的位置。
\n[root@]# date '+%B %V %T.%3N:'\nJuly 29 21:01:24.766:\nRun Code Online (Sandbox Code Playgroud)\necho 'date \xe2\x80\x99+%B %V %T.%3N:\xe2\x80\x99 %LINK-3-UPDOWN: Interface Port-channel1, changed state to up'\nRun Code Online (Sandbox Code Playgroud)\n预期产出
\nJuly 29 21:01:24.766: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up'\nRun Code Online (Sandbox Code Playgroud)\n