Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-31-2005, 01:24 AM   #1
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, 05:51 AM   #2
Senior Member
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

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


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 08:15 PM
Time and Date on files Azhrarn Linux - Newbie 2 09-05-2005 04:32 AM
Copy files after a certain date davholla Linux - General 2 03-17-2005 09: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 02:38 AM
Removing all files with the same date. Bookmarc Linux - General 1 08-12-2002 03:35 PM > Forums > Linux Forums > Linux - Software

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