当前位置--> 首 页 --> 文 章 -->SourceCode
|
|
※阅读文章※ |
Shell源码:用命令find产生一个以当日日期为后缀的文件作者:宫敏 [文章出自: www.fanqiang.com] file=`date '+%m%d'` | touch todayis.$file 或者做一个shell脚本: #!/usr/bin/sh file=`date '+%M%d'` touch todayis.$file exit 0 注意定义file变量中的“`”不是“ '”,而是左上角数字键1傍边那个(左单引号)。&nbs 文章加入时间: 2004-11-17 14:58:42 责任编辑: w9 (2619 人次查阅) |