LinuxQuestions.org
Visit Jeremy's Blog.
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 04-22-2012, 02:04 AM   #1
sysmicuser
Member
 
Registered: Mar 2010
Posts: 359

Rep: Reputation: 0
processing files based on date


Is it possible to process a set of based on files.

Say if for example say,
drwxrwxr-x 2 user01 user01 4096 Apr 22 15:33 application-development
drwxrwxr-x 3 user01 user01 4096 Apr 22 15:48 e-learning
user01@user01-VirtualBox:~$ pwd
/home/user01
user01@user01-VirtualBox:~$

How can we determine programmatically once we run ls -lrt command all files created or "touched" with today's.?

Any clues, logic would be highly appreciated?


many thanks
 
Old 04-22-2012, 02:37 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
find -mtime -1 for the last 24 hours, or
find -mmin -<minutes since midnight> for a more exact match ...
 
1 members found this post helpful.
Old 04-22-2012, 02:51 AM   #3
sysmicuser
Member
 
Registered: Mar 2010
Posts: 359

Original Poster
Rep: Reputation: 0
Thanks Tinkster I shall give it a go and see how that works.
 
  


Reply


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
Sort files in directories based on the files date... CharlieMike73 Programming 5 09-09-2009 11:04 PM
Exclude files from rm -rf based on date stefaandk Programming 3 01-23-2009 11:24 PM
Delete files based on date stefaandk Linux - General 3 06-17-2005 03:20 AM
Script for deleting files based on date MaverickApollo Linux - General 3 02-03-2004 08:54 PM
Listing Files based on date axero Linux - Newbie 2 10-19-2003 05:58 PM

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

All times are GMT -5. The time now is 03:24 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration