LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-07-2004, 01:32 PM   #1
massai
LQ Newbie
 
Registered: Dec 2003
Location: Newark Delaware
Distribution: Debian unstable, Knoppix, PC LinuxOS
Posts: 26

Rep: Reputation: 15
search based on time stamp ?


Hi,

This must be trivial to most of you, but I searched the man pages on "Find", "Locate" and "grep" as well as did some googling and didn't any usefull examples to get me started.

I would like to find all files that were edited/modified between 9:00am -> 12:30pm today.
How can we do this (without using the KDE front end)?

(P.S. I do not want all files modified within n -- 24 hour periods. Only a specific time bracket of a specific date)

--
 
Old 03-07-2004, 02:50 PM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well you could create a file with the begin time stamp and one with the end time stamp with the touch command.
And then compare each file in a loop with -ot and -nt. You can read the advanced bash scripting guide for more info on -ot and -nt.
Either way I think you need to compare each file in a loop cause I don't think there is any switch in any of those commands which finds files both newer and older then a certain time stamp.
 
  


Reply



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
Time stamp Kalyani1 Linux - Software 0 11-07-2005 02:58 PM
set up the Time stamp Kalyani1 Linux - Software 3 11-06-2005 02:36 PM
time stamp for file modification youngstorm Linux - Newbie 2 11-01-2005 03:46 PM
Time stamp in Samba is 11 hours behind time stamp in Linux Linh Linux - General 3 09-04-2003 12:44 PM
Remove files by time stamp evione Linux - Newbie 1 07-15-2003 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:15 PM.

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