The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to find files older than 2 hours pt14 AIX 3 03-05-2008 08:31 AM
how to find files older than 4hours in HP-UX caprikar UNIX for Advanced & Expert Users 3 11-27-2007 01:23 PM
find files older than a given file Shivdatta Shell Programming and Scripting 5 07-24-2006 04:25 AM
only find files older than x minutes old dsimpg1 Shell Programming and Scripting 1 05-18-2006 08:48 PM
Find files older than 5 days and remove tem after listing ypatel6871 UNIX for Dummies Questions & Answers 1 09-05-2005 08:00 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-09-2006
Registered User
 

Join Date: May 2006
Posts: 2
Stumble this Post!
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.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-09-2006
Registered User
 

Join Date: Oct 2002
Posts: 670
Stumble this Post!
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.
Reply With Quote
  #3 (permalink)  
Old 05-18-2006
Registered User
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 130
Stumble this Post!
I thank you both. I've learned something new today. I've been using sed all these years to filter out the unwanted subdirectories.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0