LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 05-31-2005, 02:24 AM   #1
novaprime
Member
 
Registered: Jan 2005
Posts: 39

Rep: Reputation: 15
Question filter files by date


hi all,

i'm trying to create a quick bash script to remove all backup files in a dir over a week old. I couldnt find a ls option to filter dates - any ideas?
 
Old 05-31-2005, 06:51 AM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
$ man find
$ find (criteria) | xargs rm
 
  


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
Does FTP somehow filter files? joshfields Linux - Software 5 09-17-2005 09:15 PM
Time and Date on files Azhrarn Linux - Newbie 2 09-05-2005 05:32 AM
Copy files after a certain date davholla Linux - General 2 03-17-2005 10:29 AM
How to filter files in files and files which are in a sub-directory with "grep"? Piero Linux - Newbie 9 08-29-2003 03:38 AM
Removing all files with the same date. Bookmarc Linux - General 1 08-12-2002 04:35 PM


All times are GMT -5. The time now is 09:27 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration