Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-21-2008, 11:29 AM   #1
Registered: Nov 2006
Posts: 136

Rep: Reputation: 15
Finding files by date

I have a newer server I am setting up and need to bring some of the files off the old server over to the new one. What I am trying to figure out is what command(s) would I use if I was looking for files newer than a specific date i.e "10/20/2007" in my /u and /www directories?
I have thousands of files to look through which is why I am going this route. I did this once but it was so long ago and dont remember how I did it.

Thanks for the help
Old 03-21-2008, 11:33 AM   #2
Registered: May 2004
Location: Raleigh, NC
Distribution: Debian, Solaris, HP-UX, AIX
Posts: 208

Rep: Reputation: 35
Look at the mtime switch for the find command.
Old 03-21-2008, 11:37 AM   #3
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
The command I would use would be find with the -newer switch.

Old 03-21-2008, 01:08 PM   #4
Registered: Nov 2006
Posts: 136

Original Poster
Rep: Reputation: 15
Im still looking around but would this work?

$ touch -d "20 october 2007" date_marker
$ find . -newer date_marker

or would this be wrong?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding files and then finding content within those files... Maeltor Linux - Software 5 03-13-2007 12:06 PM
delete files by date noir911 Programming 4 10-04-2006 07:42 AM
Time and Date on files Azhrarn Linux - Newbie 2 09-05-2005 04:32 AM
filter files by date novaprime Linux - Software 1 05-31-2005 05:51 AM
Finding out the creation date for files/folders... darkarcon2015 Linux - Software 1 03-24-2005 05:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration