话说shell脚本格式化输出时间非常容易比方输出,20120620
 
如果是perl那就需要加载这个函数use POSIX qw( strftime);
perl date.pl
这个函数的变量跟date的几乎一样。