LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-18-2010, 09:27 AM   #1
anandpu70
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.
Anand.
 
Old 01-18-2010, 10:19 AM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,796
Blog Entries: 31

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


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

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

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