Find the answer to your Linux question:
Results 1 to 4 of 4
Good morning all I have a question about using find. how can find files modifed less than 12 days ago but more 5 days ago?...
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    28

    using find

    Good morning all
    I have a question about using find.

    how can find files modifed less than 12 days ago but more 5 days ago?

  2. #2
    Linux Newbie ursusca's Avatar
    Join Date
    Dec 2008
    Location
    Toronto
    Posts
    112
    Hi,

    I can't exactly answer your question but usually I use this command
    Code:
    find . /<path_to_folder>/arch_prod*.arc -ctime +5 -exec rm {} \;
    against my testing Oracle servers to remove old archived log files.
    The "-ctime +5" parameter causes the find command to search for files with change dates more than five days in the past.

  3. #3
    Linux Newbie
    Join Date
    Mar 2009
    Posts
    228
    Try this:

    Code:
    find . /<path_to_dir> \( -ctime -12 -a -ctime +5 \)

  4. #4
    Just Joined!
    Join Date
    Dec 2009
    Posts
    28
    thank you, i will try

Posting Permissions

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