The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to find ot ctime , mtime ,atime nilesrex Shell Programming and Scripting 5 11-08-2008 04:35 PM
Problem with find command when used with mtime arunkumar_mca UNIX for Dummies Questions & Answers 4 01-08-2008 12:37 AM
problem with find and mtime arunkumar_mca UNIX for Dummies Questions & Answers 4 11-05-2007 07:41 AM
find -mtime off by one day? ceanntrean UNIX for Dummies Questions & Answers 4 08-24-2005 07:46 PM
find -mtime +2? means after 48 hours.. yls177 UNIX for Dummies Questions & Answers 1 11-08-2002 07:59 AM

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 04-26-2006
topcat8 topcat8 is offline
Registered User
  
 

Join Date: Jul 2003
Location: London, England
Posts: 10
Cool find . -mtime

...what am i doing wrong??

I need to find all files older than 30 days and delete but I can't get it to pull details for ANY + times. The file below has a time stamp which is older than 1 day, however if I try and select it using any of the -time flags it just doesn't see it. (the same thing happens with -atime also).

$ ls -l checkvob.24-04-06.11806
-rw-rw-r-- 1 admin Devel 325 Apr 24 12:32 checkvob.24-04-06.11806
$ find . -name checkvob.24-04-06.11806 -ctime +0
./checkvob.24-04-06.11806
$ find . -name checkvob.24-04-06.11806 -ctime +1
$ find . -name checkvob.24-04-06.11806 -mtime +0
./checkvob.24-04-06.11806
$ find . -name checkvob.24-04-06.11806 -mtime +1
$ id
uid=22133(admin) gid=4153(Devel)
$ date
Wednesday April 26 11:03:51 BST 2006
  #2 (permalink)  
Old 04-26-2006
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,115
See problem with find
Closed Thread

Bookmarks

Tags
mtime

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 12:05 AM.


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