![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Problem with find command when used with mtime | arunkumar_mca | UNIX for Dummies Questions & Answers | 4 | 01-08-2008 12:37 AM |
| strange problem in finf with mtime | arunkumar_mca | UNIX for Dummies Questions & Answers | 6 | 12-24-2007 10:04 AM |
| problem with find and mtime | arunkumar_mca | UNIX for Dummies Questions & Answers | 4 | 11-05-2007 07:41 AM |
| mtime | ravi raj kumar | Shell Programming and Scripting | 7 | 03-01-2007 08:54 PM |
| mtime help!!!!! | scooter17 | UNIX for Dummies Questions & Answers | 2 | 09-12-2006 02:24 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Are you looking for files less than 24h:00m:00s old?
Code:
touch -t 12171100.01 testfile find . -newer testfile Code:
touch -t 12161100.01 oldfile touch -t 12171100.01 newfile find . -newer newfile -a ! -newer oldfile |
|
|||||
|
why find command is not giving the expected output everyday????
let CLSS is my home dir, under that 5 sub dir(s) are there. i have a script which loop thru all the sub-folders available under CLSS, then i issue the following command to get 1day older files. find . -mtime +1 -type f -exec ls -1 {} \; then i have to remove those files. But for some sub-folders it is giving me correct result....but for some not as expected ??? so if i used find . -mtime 1 -type f -exec ls -1 {} \; => gives me perfect results . system date Wed Dec 26 01:43:57 SGT 2007 folder name /app/cbf/CLSS/CSPAT104/decisions -rw-r--r-- 1 xx XXX 128 Dec 24 13:23 CSPAT104_0712241323.decision comand issued [decisions]$ find . -mtime +1 -type f => doesn't retun the file name even though 24Hrs crosed [decisions]$ find . -mtime 1 -type f => giving the actual ./CSPAT104_0712241323.decision So why this one is happening ??? and is there any proper find command which i can apply in the script to get the expected results ??? |
![]() |
| Bookmarks |
| Tags |
| mtime |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|