<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[[实践OK]shell年月日时分秒日志封装函数有必要，一行实现输出shell的年月日时分秒[2019/06/18 11:23:55]，shell时间,shell创建文件，linux shell编写以日期时间为文件名的脚本学习笔记 ]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Php/Js/Shell/Go]]></category>
<pubDate>Thu, 28 Oct 2010 09:14:55 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	echo [$(date +%Y/%m/%d&#92; %H:%M:%S)]<br/>[2019/06/18 11:23:55]<br/><br/><textarea name="code" class="php" rows="15" cols="100">
cat funlog.sh
#!/bin/sh
log()&#123;
&nbsp;&nbsp; local prefix=&quot;[$(date +%Y/%m/%d&#92; %H:%M:%S)]:&quot;
&nbsp;&nbsp; echo &quot;$&#123;prefix&#125; $@&quot; &gt;&amp;2
&#125;
log &quot;INFO&quot; &quot;a message&quot;
</textarea><br/><br/>sh funlog.sh <br/>[2019/06/18 11:28:32]: INFO a message<br/><br/>=============================================================================<br/><textarea name="code" class="php" rows="15" cols="100">
echo &quot;监控到PC客户端上传总分片接口Http状态码返回200，说明Tomcat服务器运行正常。&quot;`date +&#039;%Y-%m-%d %H:%M:%S&#039;`;
</textarea><br/><br/>shell时间：<br/><div class="code">a=`date +%Y%m%d`<br/>echo $a;</div><br/><br/><div class="code"># sh data.sh <br/>20101028</div><br/><br/><br/><br/><div class="code">#!/bin/sh<br/>#log<br/>MYDATE=`date +%d%m%y`<br/>#append MYDATE to the variable LOGFILE that holds the actual filename of the log<br/>LOGFILE=/root/test_log.$MYDATE<br/>#create the file<br/>&gt;$LOGFILE<br/>MYTIME=`date +%d%R`<br/>LOGFILE2=/root/test_logtime.$MYTIME<br/>#create the file<br/>&gt;$LOGFILE2</div><br/><br/>会生成俩文件：<br/><br/><div class="code">ls /root/test_log.281010</div>/root/test_log.281010<br/><br/><br/><div class="code">ls /root/test_logtime.2819:26</div><br/>/root/test_logtime.2819:26<br/>来源：http://liubin.blog.51cto.com/282313/166927
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]shell年月日时分秒日志封装函数有必要，一行实现输出shell的年月日时分秒[2019/06/18 11:23:55]，shell时间,shell创建文件，linux shell编写以日期时间为文件名的脚本学习笔记 ]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>