在 Windows、Linux 操作系统,分别利用BAT批处理文件和Shell脚本,生成类似“20110228_082905.txt”以“年月日_时分秒”命名的文件。

  Windows BAT批处理文件:
@echo off
set time_hh=%time:~0,2%
if /i %time_hh% LSS 10 (set time_hh=0%time:~1,1%)
set filename=%date:~,4%%date:~5,2%%date:~8,2%_%time_hh%%time:~3,2%%time:~6,2%
echo test >> %filename%.txt


  Linux Shell 脚本:
#!/bin/sh
echo test >> $(date -d "today" +"%Y%m%d_%H%M%S").txt






技术大类 » PHP/JS/Shell | 评论(311) | 引用(4) | 阅读(143192)
66tlvhjb Email Homepage
2012-4-16 22:58
Nike air griffey max sportswear from the latest version of design studio looks like a straight line down from the Nike ACG mountain terrain park here. Off-set with pastel neon accents fall, Nike Sportswear Air Max a forest may be a prudent and ice throw, Nike Air Max 95 till the fall of raising its charming head. On the other hand, you could just continue to move forward, these rocks into the air and pull off Max's now a khaki on the appearance. Air Max 95 Air Max less costly 1 using the traditional design of all components, this name is air max 95's color is set separately. I absolutely love these Nike Air Max 2012. I needed a new style for work, they look great and even feel better. Very soft sole nike air max 90 New Arrival. It is important for my work shoes to have ventilation. I’ll be back before Christmas.
ivy Email Homepage
2012-4-17 09:45
"A lot of people do not weara href="http://www.glasses-go.com/">Cheap Sunglasses</a>,  because they had been in the movement for the clarity of the past and the trouble, said:" President. "Sunglasses technological progress has corrected these problems, and now there are a lot of sunglasses, choose not to slip, fog or damage your eyes when you run. "Dean said," Many people do not know where the frames and lenses, which will enhance their outdoor experience, while protecting their own eyes. Athletes and outdoor enthusiasts from a variety of lenses and frames are effective and stylish choice. The release of her sunglasses brand spanking is no wonder that Burberry is one of the largest British brands - today to see his new collection of fashion "N" the summer of 2012. Full of holiday ahead of a summer, a lightweight framework, we love the gorgeous gold and bronze palette and classic pilot style nail, Rock 'N' roll atmosphere. <a href="http://www.glasses-go.com/Wholesale-dior-sunglasses_c21/" title="Cheap Dior Sunglasses,Dior Sunglasses 2012">Dior Sunglasses</a>,  So, who better movement than the pulse on the finger of the British music chief creative officer, Christopher Bailey, the selection of the most promising musical talent group of shadow?
ivy Email Homepage
2012-4-17 09:47
if you want to <a href="http://www.glasses-go.com/">Buy Eyeglasses</a>, you can contact me .we supply many kinds <a href="http://www.glasses-go.com/">Cheap Sunglasses</a>, pls feel free to conctact me at any time.
ivy Email Homepage
2012-4-17 09:49
Whether you end up sunglasses, you need to find one pair that will cut the glare and Light like to bounce off the surface, when it does, you will find that you are nervous and the corresponding glare. The polarized lenses allow light is not reflected back, resulting in this uncomfortable situation. You can shop the Wholesale Sunglasses, under normal circumstances, and men\'s sunglasses, your choices are often limited, you shopped. Now you can sit down in the comfort of your own home, just open your computer to start looking through all the style choices, like the designer and prescription sunglasses. How to choose the suitable eyes you can check site http://www.glasses-go.com/m, you can certain to a type
ivy Email Homepage
2012-4-17 09:51
wanling1705 Email Homepage
2012-4-19 18:20
Wittenberg grabs lead at Chitimacha Louisiana Open - Golf - Yahoo,anteojos ray ban mujer! Sports
Related articles:

  
   http://jojo-do.com/bbs/viewthread.php?tid=1094752&extra=
seo449526 Email Homepage
2012-4-21 03:41
随便看看,哈哈哈哈。。。。
caiyun7476 Email Homepage
2012-4-26 02:12
Agcom: non richiesto alcun parere su pirateria informatica - Yahoo,Ray-Ban RB4122! Notizie Italia
Roma,prix rayban, 14 mar. (Adnkronos) - L&#39;Agcom non ha richiesto alcun parere esterno e quello riportato e&#39; un parere pro-veritate prodotto da Confindustria cultura nell&#39;ambito della consultazione pubblica svolta dall&#39;Autorita&#39; tra i soggetti interessati. E&#39; quanto precisa l&#39;Agcom in riferimento a notizie di stampa relative al fatto che l&#39;Autorita&#39; per le garanzie nelle comunicazioni avrebbe chiesto un parere al Professor Valerio Onida in tema di misure per contrastare la pirateria informatica.
Related articles:

  
   http://www.thesecretplaces.com/forum.php?mod=viewthread&tid=260655
guxuan8910 Email Homepage
2012-4-26 08:06
Robot lets you use your Kinect to clean grandma’s house without leaving your own
Related articles:

  
   http://www.miolife.com/bbs/viewthread.php?tid=2931653&extra=
penyamgn Email
2012-4-28 17:44
南园里的桃花开了China Political Trends
     一树一树粉红色的桃花
     她的薄如纸翼的花萼
     柔媚的情怀
     在春风里舞
     在阳光里演说着爱情
     多情的落花追逐东去的流水
     无情的流水发出深沉的叹息
     落花去了
     暮春的一滴眼泪
     深藏在厚厚的书页里
     桃花不识愁滋味
     桃花依旧笑春风
     桃花情斩断多少英雄路
     桃花梦成就多少桃花情
     桃花谢了
     桃花梦犹在
     桃花谢了
     桃花情千古
     我喜欢桃花那短暂的美丽
     暮春的消息——泪滴
     桃花的香迹——黄土,天空,东逝水……
     桃花的美丽——月光曲的忧伤
     向往,春的歌谣
     桃子的秘密赞
ahhs46tln Email Homepage
2012-4-29 01:44
每次看帖都是感到评论比标题经典,美丽女人网
ahhs33hda Email Homepage
2012-4-29 01:45
每次看帖都是感到评论比标题经典,帮您健康减肥网
ahhs88xwg Email Homepage
2012-4-29 01:47
赞一个 不错,美丽女人网,不错支撑一下
写的好,帮您健康减肥网,顶顶
a5y0t0a9 Email Homepage
2012-5-1 00:35
Buy Cheap and Discount 2012 Nike Air Max. We offer all the 2012 New Style Cheap air max with the reasonable price to you.
bilan4001 Email Homepage
2012-5-5 01:09
Hénaut président
Peu de moyens, mais plein d&#39;idées, comme celle de ne pas céder au cynisme ou à l&#39;ironie.  C&#39;est la version comique de l&#39;excellente série récemment diffusée sur France 2 Les Hommes de l&#39;ombre. Soit les coulisses d&#39;une campagne présidentielle vue à travers le prisme de la communication. Celle-ci est assurée par un fils de pub en mal de notoriété,prix sac longchamp, qui voit en Pierre Hénaut, maire incorruptible et candidat idéaliste, l&#39;occasion de se faire une belle réputation en transformant cet honnête élu en troisième homme du premier tour.
    A l&#39;image de cette manipulation orchestrée à la dernière minute, Hénaut président est un film réalisé "à l&#39;arrache". Peu de moyens, mais plein d&#39;idées, comme celle de ne pas céder au cynisme ou à l&#39;ironie. Ainsi, le r?le-titre n&#39;a rien de l&#39;idiot du village et on voterait volontiers pour lui si ce n&#39;était du cinéma. L&#39;humour, fin et corrosif, réside dans les situations parfois énormes, souvent pathétiques, toujours crédibles. Le réalisme vient de la présence de David Pujadas,Longchamp Darshan Einkaufstasche, de Ruth Elkrief ou de Jean-Jacques Bourdin, dans leurs propres r?les, quand le souci de qualité est apporté par Olivier Gourmet, tête de liste une fois de plus irréprochable.
        
Retrouvez cet article sur lexpress.fr
Aurora
Bye Bye Blondie
Bellflower
Torpédo
Related articles:

  
   http://www.zj11.com.cn/Review.asp?NewsID=521
7862hf06 Email Homepage
2012-5-7 09:37
新人来报个道,老鸟们多多关照哦! 如有不当,请多包涵!
Abercrombie Email Homepage
2012-5-9 10:37
Alors vous avez certainement certainement Abercrombie certainement certainement sans aucun doute également en charge les sites d'enchères qui offrent-vous plutôt une sélection complète de vêtements Abercrombie mais l'acquisition sans tenir compte d'un problème pas lorsque les produits sont authentiques autrement seront selon toute probabilité, une méthode supplémentaire compliqué à la main.
hogan280 Email
2012-5-10 18:01
Nella segnalazione del Rochdale "processo grooming" molto è stato fatto del fatto che gli uomini erano in gran parte pakistani, mentre Hogan le 47 vittime, anche se solo sette hanno fornito prove - erano tutti bianchi e classe operaia. Le vittime avevano un'età compresa tra 13 e 15 anni al momento dell'abuso, e la polizia li ha descritti come da "caotica" e "Consiglio tenuta" sfondi.
分页: 10/16 第一页 上页 5 6 7 8 9 10 11 12 13 14 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]