LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Find command issue (https://www.linuxquestions.org/questions/linux-newbie-8/find-command-issue-836406/)

zivota 10-05-2010 04:59 PM

Find command issue
 
I am using find to search for .tgz files modified more than 7 days ago and delete them.

find /directory/ -iname backup*.tgz -daystart -mtime +7 -exec rm -rf {} \

My problem is that find will go through the content of tarball as well and list all content. I want to only search main tarball and delete it if older than 7 days.

Tinkster 10-05-2010 05:35 PM

Ummm ... if it does then it's because you told it to, and it's NOT
what the invocation above will do.



Cheers,
Tink

zivota 10-05-2010 05:40 PM

Directory I am searching is mounted NFS share. Can that cause the issue?

zivota 10-05-2010 06:25 PM

Problem solved. There was an issue with NFS server.

grail 10-05-2010 06:36 PM

Please mark as SOLVED then.


All times are GMT -5. The time now is 04:52 AM.