Chinaunix首页 | 论坛 | 博客
  • 博客访问: 470005
  • 博文数量: 711
  • 博客积分: 3000
  • 博客等级: 中校
  • 技术积分: 4200
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-28 14:18
文章分类

全部博文(711)

文章存档

2011年(1)

2008年(710)

我的朋友

分类:

2008-10-29 11:54:41


  #!/bin/sh
  # The right of usage, distribution and modification is here by granted by the author.
  # The author deny any responsibilities and liabilities related to the code.
  #
  OK=0
  A=`find $1 -print`
  if expr $3 == 1 >/dev/null ; then M=Jan ; OK=1 ; fi
  if expr $3 == 2 >/dev/null ; then M=Feb ; OK=1 ; fi
  if expr $3 == 3 >/dev/null ; then M=Mar ; OK=1 ; fi
  if expr $3 == 4 >/dev/null ; then M=Apr ; OK=1 ; fi
  if expr $3 == 5 >/dev/null ; then M=May ; OK=1 ; fi
  if expr $3 == 6 >/dev/null ; then M=Jun ; OK=1 ; fi
  if expr $3 == 7 >/dev/null ; then M=Jul ; OK=1 ; fi
  if expr $3 == 8 >/dev/null ; then M=Aug ; OK=1 ; fi
  if expr $3 == 9 >/dev/null ; then M=Sep ; OK=1 ; fi
  if expr $3 == 10 >/dev/null ; then M=Oct ; OK=1 ; fi
  if expr $3 == 11 >/dev/null ; then M=Nov ; OK=1 ; fi
  if expr $3 == 12 >/dev/null ; then M=Dec ; OK=1 ; fi
  if expr $3 == 1 >/dev/null ; then M=Jan ; OK=1 ; fi
  if expr $OK == 1 > /dev/null ; then
  ls -l --full-time $A 2>/dev/null | grep "$M $4" | grep $2 ;
  else
   echo Usage: $0 path Year Month Day;
   echo Example: $0 ~ 1998 6 30;
  fi
【责编:admin】

--------------------next---------------------

阅读(227) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~