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 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 ?
You used the wrong format. Instead of -7 you should use +7. >From find man page: +n for greater than n, -n for less than n, n for exactly n. You need the "greater than n" (greater = older). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D <http://www.keyserver.net/> Better Safe Than Sorry ================================================================= 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]
