Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: how to know latest file creation on a partition
One easy way is the touch and the find command
touch -t date_time file_name
where date_time is in the form of yyyymmddhhmi.ss and file_name is the name of a temp file to use on the search. I often use 'time_file'
find . -name "*" -newer time_file
It will find all files starting in this directory, that you have access to,
that are newer in time than the file called 'time_file'
For example, if you want to find all files that were created in the last 50 days, you need to know the following:
todays date (June 27) the date 50 days ago (about may 10)
you then touch the time_file with that date
touch -t 200105100000.00 time_file
you then use the find command to locate any files newer than that:
find . -name "*" -newer time_file
If you happen to need a shell script to do the date math for you (i.e. subtract and find the exact date 50 days ago), I have that. Just ask.
Kevin
-----Original Message-----
Sent: Wednesday, June 27, 2001 10:41 AM
To: Multiple recipients of list ORACLE-L
Hi
How to know the latest file generated in single partition?
Suppose /root is one partition.
I want to know what are the files generated since 50 days.IS there any
command to know?
Thanks
-Seema
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Seema Singh
INET: oracledbam_at_hotmail.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Jun 27 2001 - 13:18:23 CDT
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message