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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to list files that were added or modified on a certain date? thoughts UNIX for Dummies Questions & Answers 8 02-20-2008 01:44 AM
greping certain modified date ali560045 Shell Programming and Scripting 2 02-08-2008 07:54 AM
Create a list of files that were modified after a given date. rkka UNIX for Dummies Questions & Answers 4 01-22-2008 05:12 AM
Last Modified Date cengiz Shell Programming and Scripting 12 06-28-2005 03:05 AM
How do I get the last modified date of a file? akpopa UNIX for Dummies Questions & Answers 2 08-29-2001 04:08 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-04-2007
kotasateesh kotasateesh is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 39
search by modified date

Hello,
How can i search for all the files in a particular directory which are not updated from past 5 days.

Thanks,
Sateesh
  #2 (permalink)  
Old 01-04-2007
maheshwin maheshwin is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 55
find

use the following option

find / -mtime -5 -print
  #3 (permalink)  
Old 01-04-2007
kotasateesh kotasateesh is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 39
Thanks for your reply. how can i get these file in to an array so that i can zip them.
  #4 (permalink)  
Old 01-04-2007
maheshwin maheshwin is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 55
u can send the stream into tar using the pipe

find / -mtime -5 -print | tar cvf test.tar
  #5 (permalink)  
Old 06-24-2008
pharos467 pharos467 is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 24
use '/' in find only if u want to search from Root dir

to find files in a particular dir. use this command -

find . -type f -mtime +5 -print
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:02 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0