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 week ago, > and not prior to that at all. > > I can't find any other way to get such data without using some "bash magic". > > Am I missing something here, or can't I get files prior to what I > specy on -mtime ?
I'm not sure what you want. If you specify -mtime 7, it will give you files changed within 24 hours starting 7 days ago and ending 8 days ago. If you specify -7 it will give you files that were modified from NOW up to seven days ago (ending time 7 days). If you specify +7, it will give you files modified up to and including 7 days ago, but nothing modified since then. HTH, Geoff. -- Geoffrey S. Mendelson, Jerusalem, Israel [EMAIL PROTECTED] N3OWJ/4X1GM IL Voice: (07)-7424-1667 Fax ONLY: 972-2-648-1443 U.S. Voice: 1-215-821-1838 Visit my 'blog at http://geoffstechno.livejournal.com/ ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
