Find files older than 20 days & not use find | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Find files older than 20 days & not use find

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-09-2006
halo98 halo98 is offline
Registered User
 
Join Date: May 2006
Last Activity: 16 October 2008, 4:06 PM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Find files older than 20 days & not use find

I need to find files that have the ending of .out and that are older than 20 days. However, I cannot use find as I do not want to search in the directories that are underneath the directory that I am searching in.

How can this be done?? Find returns files that I do not want.
Sponsored Links
    #2  
Old 05-09-2006
dangral dangral is offline Forum Advisor  
Registered User
 
Join Date: Oct 2002
Last Activity: 31 July 2013, 6:52 PM EDT
Posts: 723
Thanks: 3
Thanked 4 Times in 4 Posts
You can still use the find command. This question has been asked many times on the unix.com board. Look here for an answer. Make sure to browse through the Frequently Asked Questions section. You'll learn a whole lot of useful information.
Sponsored Links
    #3  
Old 05-18-2006
hegemaro hegemaro is offline
Registered User
 
Join Date: Feb 2006
Last Activity: 3 February 2012, 11:19 PM EST
Location: Schenectady, NY
Posts: 134
Thanks: 0
Thanked 2 Times in 2 Posts
I thank you both. I've learned something new today. I've been using sed all these years to filter out the unwanted subdirectories.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How do I find files which are older than 30 days and greater than 1GB Hangman2 UNIX for Dummies Questions & Answers 4 08-30-2011 06:58 AM
find files older than 30 days old omonoiatis9 UNIX for Advanced & Expert Users 8 06-29-2011 07:19 AM
Find files older than 10 days Pouchie1 UNIX Desktop for Dummies Questions & Answers 4 08-19-2009 07:55 PM
How to find files older than 30 days anushree.a Shell Programming and Scripting 4 07-08-2009 09:43 AM
Find files older than 5 days and remove tem after listing ypatel6871 UNIX for Dummies Questions & Answers 1 09-05-2005 12:00 PM



All times are GMT -4. The time now is 08:10 AM.