Hey, hey... Now that is a proper solution to the search... My dumb @ss solution works but if 2003- is in the file name it will be listed as well...LoL
Guess that is what a newbie gets for trying to answer easy but hard questions...heheheh. -----Original Message----- From: Dave Carrigan [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 10:01 AM To: Debian List Subject: Re: find by year -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Oct 3, 2006, at 11:41 AM, Curtis Vaughan wrote: > Sorry for asking such amateur questions but I want to find all > files created in 2003 under a directory. I know there's an easy way > to do this and I've seen it before, but I can't figure it out > myself. Could someone please tell me the exact command line for that? The most precise way is to use the -newer function to compare it to files that bracket your start and end of your search: touch --date=2003-01-01 /tmp/start touch --date=2004-01-01 /tmp/end find . -newer /tmp/start -a ! -newer /tmp/end - -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudeog.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFI76bf1psBSgxx0sRAvyMAKCXpcWlb37WYRsAtw+GtiTf4hpOSwCfVDif kDbRso6N1T0OnLdj5H8ZnbY= =AgJn -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]