skip to main | skip to sidebar

Open Galaxy

2013年11月5日 星期二

找出符合某些條件的檔案,加以刪除

找出/tmp下,建立時間超過30天,由dsas這個user所建,而且是SAS開頭的檔案,把它刪除掉。
find /tmp -type f -name 'SAS*' -user dsas -ctime +30 -print -exec rm -f '{}' \;

張貼者: 冥王星 於 晚上7:24
標籤: command
較新的文章 較舊的文章 首頁

標籤

  • article
  • c#
  • command
  • design
  • fedora
  • hibernate
  • ibm
  • iis
  • java
  • jboss
  • jetty
  • linux
  • memo
  • mssql
  • mysql
  • netweaver
  • oracle
  • sas
  • saying
  • spring
  • sql
  • struts
  • tip
  • tomcat
  • ubuntu
  • vbscript
  • weblogic
  • windows
  • xforms
  • xwiki

我

冥王星
檢視我的完整簡介

網誌存檔

  • ▼  2013 (6)
    • ▼  11月 (2)
      • 在在Eclipse Editor中切換大小寫
      • 找出符合某些條件的檔案,加以刪除
    • ►  9月 (1)
    • ►  8月 (1)
    • ►  3月 (1)
    • ►  1月 (1)
  • ►  2012 (5)
    • ►  11月 (2)
    • ►  6月 (2)
    • ►  1月 (1)
  • ►  2011 (11)
    • ►  12月 (2)
    • ►  8月 (3)
    • ►  7月 (1)
    • ►  6月 (1)
    • ►  4月 (3)
    • ►  3月 (1)
  • ►  2010 (4)
    • ►  11月 (1)
    • ►  10月 (1)
    • ►  5月 (1)
    • ►  3月 (1)
  • ►  2009 (15)
    • ►  11月 (1)
    • ►  9月 (1)
    • ►  7月 (3)
    • ►  6月 (1)
    • ►  5月 (1)
    • ►  3月 (7)
    • ►  2月 (1)
  • ►  2008 (14)
    • ►  9月 (1)
    • ►  8月 (3)
    • ►  7月 (3)
    • ►  6月 (2)
    • ►  5月 (1)
    • ►  2月 (2)
    • ►  1月 (2)
  • ►  2007 (7)
    • ►  5月 (4)
    • ►  1月 (3)
  • ►  2006 (3)
    • ►  12月 (3)