Re: find -mtime and wrong data return

2007-03-16 Thread ik
Hello, First of all I wish to thank you all for your answers. In did I miss understood the minus and the plus thingys on the man page. The find -type f -mtime +7 did worked for me. Ido On 3/15/07, Peter [EMAIL PROTECTED] wrote: find -type f -mtime +7 be careful, esp. if you do not use

Re: find -mtime and wrong data return

2007-03-15 Thread Ehud Karni
On Thu, 15 Mar 2007 14:38:30 ik [EMAIL PROTECTED] wrote: I wish to use the find command in order to find all the files that were created prior to specific file. So I tried to use the following command: find -type f -mtime -7 In order to get all the files that where modified prior to a

Re: find -mtime and wrong data return

2007-03-15 Thread Geoffrey S. Mendelson
On Thu, Mar 15, 2007 at 02:38:30PM +0200, ik wrote: Hello, were created prior to specific file. So I tried to use the following command: find -type f -mtime -7 In order to get all the files that where modified prior to a week ago, but it only gives me files that where last changed a

RE: find -mtime and wrong data return

2007-03-15 Thread Rony Shapiro
for? Rony -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ehud Karni Sent: Thursday, March 15, 2007 3:02 PM To: [EMAIL PROTECTED] Cc: linux-il@linux.org.il Subject: Re: find -mtime and wrong data return On Thu, 15 Mar 2007 14:38:30 ik [EMAIL PROTECTED] wrote

Re: find -mtime and wrong data return

2007-03-15 Thread Yedidyah Bar-David
On Thu, Mar 15, 2007 at 02:38:30PM +0200, ik wrote: Hello, I wish to use the find command in order to find all the files that were created prior to specific file. So I tried to use the following command: find -type f -mtime -7 Try find -type f -mtime +7 -- Didi

RE: find -mtime and wrong data return

2007-03-15 Thread Peter
find -type f -mtime +7 be careful, esp. if you do not use -type f . You can bracket 'between 7 and 9 days' etc with: find -type f -mtime +7 -a -mtime -9 This is useful for answering questions like 'wtf happened to my not-backed-up file xxx.c 3 days ago, pretty please $DEITY make there