Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Posts
    28

    Unanswered: want to remove the files which are 4 months old? how to do it?

    want to remove the files which are 4 months old? how to do it?

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1

    Re: want to remove the files which are 4 months old? how to do it?

    Originally posted by calyan
    want to remove the files which are 4 months old? how to do it?
    find /dir_where_the_files_are -type f -mtime +120 -print -exec rm -f '{}' \;

    will delete the files that are 120 days old

Posting Permissions

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