熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Oracle >> 正文

如何查找日期為某一天的文件

2022-06-13   來源: Oracle 

  #!/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=
  A=`find $ print`
  if expr $ == >/dev/null ; then M=Jan ; OK= ; fi
  if expr $ == >/dev/null ; then M=Feb ; OK= ; fi
  if expr $ == >/dev/null ; then M=Mar ; OK= ; fi
  if expr $ == >/dev/null ; then M=Apr ; OK= ; fi
  if expr $ == >/dev/null ; then M=May ; OK= ; fi
  if expr $ == >/dev/null ; then M=Jun ; OK= ; fi
  if expr $ == >/dev/null ; then M=Jul ; OK= ; fi
  if expr $ == >/dev/null ; then M=Aug ; OK= ; fi
  if expr $ == >/dev/null ; then M=Sep ; OK= ; fi
  if expr $ == >/dev/null ; then M=Oct ; OK= ; fi
  if expr $ == >/dev/null ; then M=Nov ; OK= ; fi
  if expr $ == >/dev/null ; then M=Dec ; OK= ; fi
  if expr $ == >/dev/null ; then M=Jan ; OK= ; fi
  if expr $OK == > /dev/null ; then
  ls l fulltime $A >/dev/null | grep $M $ | grep $ ;
  else
   echo Usage: $ path Year Month Day;
   echo Example: $ ~ ;
  fi
From:http://tw.wingwit.com/Article/program/Oracle/201311/17568.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.