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 01-18-2010, 10:27 AM   #1
LQ Newbie
Registered: Jan 2010
Posts: 4

Rep: Reputation: 0
Looking for logic or comand to delete files older than particular time(say 7.59)

Hi All,

I have particular requirement like deleting the files older than 17th Jan before 7.59am ( Its very particular about the time). I can delete particular date older files but how do i get to delete older than particular time. If any one has any logic or command to do this in Korn shell please let me know.

-Thanks in advance.
Old 01-18-2010, 11:19 AM   #2
Senior Member
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,672
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
find /tmp ! -newermt '2010-01-17 07:59:00' -exec rm -fv '{}' ';'
1 members found this post helpful.


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
[SOLVED] Delete old files older than 7 days anon091 Linux - Newbie 3 09-18-2009 02:15 PM
Script help - delete files older than 45 days but exclude the system files jojothedogboy Linux - Software 3 06-13-2008 04:43 PM
Help to Delete older Files on asterisk n33d Linux - Server 3 06-05-2008 09:20 PM
Delete files older then 30 days stefaandk *BSD 1 01-07-2008 09:31 PM
delete files older then a month? Red Squirrel Linux - Software 1 10-05-2005 11:54 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:56 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
Open Source Consulting | Domain Registration