<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[张宴的博客]]></title> 
<link>http://zyan.cc/index.php</link> 
<description><![CDATA[Web系统架构与底层研发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[张宴的博客]]></copyright>
<item>
<link>http://zyan.cc/post/459/</link>
<title><![CDATA[Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[PHP/JS/Shell]]></category>
<pubDate>Mon, 28 Feb 2011 07:33:09 +0000</pubDate> 
<guid>http://zyan.cc/post/459/</guid> 
<description>
<![CDATA[ 
	　　在 Windows、Linux 操作系统，分别利用BAT批处理文件和Shell脚本，生成类似“20110228_082905.txt”以“年月日_时分秒”命名的文件。<br/><br/>　　Windows BAT批处理文件：<br/><div class="code">@echo off<br/>set time_hh=%time:~0,2%<br/>if /i %time_hh% LSS 10 (set time_hh=0%time:~1,1%)<br/>set filename=%date:~,4%%date:~5,2%%date:~8,2%_%time_hh%%time:~3,2%%time:~6,2%<br/>echo test &gt;&gt; %filename%.txt<br/></div><br/><br/>　　Linux Shell 脚本：<br/><div class="code">#!/bin/sh<br/>echo test &gt;&gt; $(date -d &quot;today&quot; +&quot;%Y%m%d_%H%M%S&quot;).txt<br/></div><br/>
]]>
</description>
</item><item>
<link>http://zyan.cc/post/459/#blogcomment7872</link>
<title><![CDATA[[评论] Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>fuyou &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 28 Feb 2011 09:03:47 +0000</pubDate> 
<guid>http://zyan.cc/post/459/#blogcomment7872</guid> 
<description>
<![CDATA[ 
	您好&nbsp;&nbsp;我之前在您<a href="http://blog.s135.com" target="_blank">http://blog.s135.com</a>网站看到一篇如何在window2003分析apache&nbsp;&nbsp;的负载，您最后分析的结果因为网络蜘蛛引起的&nbsp;&nbsp;时间应该是读大学校的时候&nbsp;&nbsp;系统也应该是你大学内的系统&nbsp;&nbsp;我现在想重新看看，可没有全站搜索功能，可否麻您帮我找出这篇文章的地址，谢谢
]]>
</description>
</item><item>
<link>http://zyan.cc/post/459/#blogcomment7873</link>
<title><![CDATA[[评论] Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>Win &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 28 Feb 2011 09:54:23 +0000</pubDate> 
<guid>http://zyan.cc/post/459/#blogcomment7873</guid> 
<description>
<![CDATA[ 
	window下要先检查%date%的格式有可能受区域语言设置影响
]]>
</description>
</item><item>
<link>http://zyan.cc/post/459/#blogcomment7874</link>
<title><![CDATA[[评论] Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>明城 &lt;i.feelinglucky@gmail.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 28 Feb 2011 13:28:33 +0000</pubDate> 
<guid>http://zyan.cc/post/459/#blogcomment7874</guid> 
<description>
<![CDATA[ 
	更精简的写法：#!/bin/bashtouch &#96;date&nbsp;&nbsp;+&quot;%Y%m%d_%H%M%S&#96;.txt
]]>
</description>
</item><item>
<link>http://zyan.cc/post/459/#blogcomment7877</link>
<title><![CDATA[[评论] Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>muxueqz &lt;zmy@linuxzh.org&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 01 Mar 2011 02:54:11 +0000</pubDate> 
<guid>http://zyan.cc/post/459/#blogcomment7877</guid> 
<description>
<![CDATA[ 
	@fuyou<br/><br/><a href="http://blog.s135.com/post/162/" target="_blank">http://blog.s135.com/post/162/</a><br/><br/>不知上面的链接是否你要找的，通过Google &quot;site://blog.s135.com windows apache&quot;
]]>
</description>
</item><item>
<link>http://zyan.cc/post/459/#blogcomment7880</link>
<title><![CDATA[[评论] Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>mcsrainbow &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 01 Mar 2011 05:49:04 +0000</pubDate> 
<guid>http://zyan.cc/post/459/#blogcomment7880</guid> 
<description>
<![CDATA[ 
	为了更新而更新？？
]]>
</description>
</item><item>
<link>http://zyan.cc/post/459/#blogcomment7885</link>
<title><![CDATA[[评论] Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>baby stroller &lt;pop45677@163.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 02 Mar 2011 01:49:54 +0000</pubDate> 
<guid>http://zyan.cc/post/459/#blogcomment7885</guid> 
<description>
<![CDATA[ 
	路过了……顺便学习 一下哈。
]]>
</description>
</item><item>
<link>http://zyan.cc/post/459/#blogcomment7887</link>
<title><![CDATA[[评论] Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>5169.info &lt;xinyu3ru@qq.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 02 Mar 2011 06:04:15 +0000</pubDate> 
<guid>http://zyan.cc/post/459/#blogcomment7887</guid> 
<description>
<![CDATA[ 
	这个，回复中有更好的方法
]]>
</description>
</item><item>
<link>http://zyan.cc/post/459/#blogcomment7889</link>
<title><![CDATA[[评论] Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>森哥 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 02 Mar 2011 09:18:41 +0000</pubDate> 
<guid>http://zyan.cc/post/459/#blogcomment7889</guid> 
<description>
<![CDATA[ 
	这个太有用了，有时候服务器需要自动备份，脚本写好了。自动备份到某个目录，压缩成了now.zip。就是不能给目录名称，现在可以了。Good，这下不用到处装ANT了。
]]>
</description>
</item><item>
<link>http://zyan.cc/post/459/#blogcomment7892</link>
<title><![CDATA[[评论] Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>碧荷 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 02 Mar 2011 13:00:34 +0000</pubDate> 
<guid>http://zyan.cc/post/459/#blogcomment7892</guid> 
<description>
<![CDATA[ 
	你好！我是一个菜鸟，刚学习linux编程，水平很低级，看到你写的一篇关于“手机短信报警的实现”，很恳切的问一下，你能否赐教我一下源代码呢？将不胜感激，我的邮箱是：_songxiaona@163.com。谢谢谢谢谢谢！
]]>
</description>
</item><item>
<link>http://zyan.cc/post/459/#blogcomment7902</link>
<title><![CDATA[[评论] Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>膏药招商 &lt;admin@jiruifu.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 04 Mar 2011 01:38:59 +0000</pubDate> 
<guid>http://zyan.cc/post/459/#blogcomment7902</guid> 
<description>
<![CDATA[ 
	一般在什么情况下要生成这样的
]]>
</description>
</item><item>
<link>http://zyan.cc/post/459/#blogcomment7906</link>
<title><![CDATA[[评论] Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>air nailer &lt;airzhang11@163.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 04 Mar 2011 05:12:17 +0000</pubDate> 
<guid>http://zyan.cc/post/459/#blogcomment7906</guid> 
<description>
<![CDATA[ 
	恩，吧错。。。受教 了。。。
]]>
</description>
</item><item>
<link>http://zyan.cc/post/459/#blogcomment7922</link>
<title><![CDATA[[评论] Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>瘦脸 &lt;easn@live.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 07 Mar 2011 02:24:09 +0000</pubDate> 
<guid>http://zyan.cc/post/459/#blogcomment7922</guid> 
<description>
<![CDATA[ 
	已经转载了，想不到博主是中南名族大学的，我就住这旁边。
]]>
</description>
</item><item>
<link>http://zyan.cc/post/459/#blogcomment7926</link>
<title><![CDATA[[评论] Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>想到大学学计算机 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 07 Mar 2011 03:40:01 +0000</pubDate> 
<guid>http://zyan.cc/post/459/#blogcomment7926</guid> 
<description>
<![CDATA[ 
	突然想到某此些理工大学学习计算机,比如<a href="http://www.sustcedu.com/" target="_blank">南方科技大学</a>,听说很NB的一个学校
]]>
</description>
</item><item>
<link>http://zyan.cc/post/459/#blogcomment7934</link>
<title><![CDATA[[评论] Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>power cord &lt;pawerc@163.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 08 Mar 2011 02:52:57 +0000</pubDate> 
<guid>http://zyan.cc/post/459/#blogcomment7934</guid> 
<description>
<![CDATA[ 
	博主这么厉害啊，呵呵
]]>
</description>
</item><item>
<link>http://zyan.cc/post/459/#blogcomment7935</link>
<title><![CDATA[[评论] Windows 和 Linux 下生成以当前时间命名的文件]]></title> 
<author>power cord &lt;xucord@163.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 08 Mar 2011 07:39:16 +0000</pubDate> 
<guid>http://zyan.cc/post/459/#blogcomment7935</guid> 
<description>
<![CDATA[ 
	这个不错，免去了自己输入文件名的困扰。
]]>
</description>
</item>
</channel>
</rss>