Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004
    Posts
    143

    Unanswered: remove old files

    I want to add into my script the code to remove any file with extension .dmp in the folder /export/u339 files that are older than 2 weeks. How can I do this ?

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Talking


    Try the find command:
    Code:
     find /export/u399 -type f -name '*.dmp' -mtime +14 -exec rm {} \;



    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

  3. #3
    Join Date
    Feb 2004
    Posts
    143
    Works simply great !! Thx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •