How to get the files which has modified date as yesterday and before?

Hi All,

Can you please help me to get only the files which has the modified date as yesterday and before?

Thanks in advance!

Regards,
Velava.S

use this

find <file_pattern> -type f  -mtime +1 2> <error_log> |xargs -I FLNAME echo FLNAME 

Thanks for your reply!

It is not working as expected and getting error.

Could you please provide the comand clearly?

I need to look the folder \devctr\srcfiles and listed down the files.

Regards,
Velava

find /devctr/srcfiles/* -type f  -mtime +1 2> error.log |xargs -I FLNAME echo FLNAME 

It is not listing all the files which has the modified date as yesterday. Actually the server resides machine has the PST timings. So if i run this command now i am not getting all the files which has the modified date of yesterday and b4.

Output - /devctr/srcfiles/TEST_FILE.out####1950699937

modified date of this file is - 06/10/2012 1:10:30 AM

The Folder contains below list of files:

i

st-dev116::/devctr/srcfiles/common>>ls -ltr /devctr/srcfiles
-rw-r--r--   1 b2binta1 b2badmin  103329 Jun 10 00:10 TEST_FILE.out####1950699937
-rw-r--r--   1 b2binta1 b2badmin 19280349 Jun 10 09:12 TEST_FILE1.out####1950699937
-rw-r--r--   1 b2binta1 b2badmin     301 Jun 10 11:31 hello.ksh
-rw-r--r--   1 b2binta1 b2badmin 13163422 Jun 10 16:31 TEST_FILE3.out####1950699937
-rw-r--r--   1 b2binta1 b2badmin 21836039 Jun 10 16:32 TEST_FILE4.out####1950699937
-rw-r--r--   1 b2binta1 b2badmin 29669732 Jun 10 16:33 TEST_FILE5.out####1950699937
-rw-r--r--   1 b2binta1 b2badmin  123277 Jun 10 16:34 TEST_FILE6.out####1950699937
-rw-r--r--   1 b2binta1 b2badmin       0 Jun 10 22:30 TEST_FILE7.out####1950699937
-rw-r--r--   1 b2binta1 b2badmin 3122149 Jun 11 22:22 TEST_FILE_TODAY.out####1950699937

Thanks & Regards,
Velava.S