One easy way is the touch and the find command
1. Touch a file with the date you want to search from.
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'
1. use the newer option on the find command, based on your 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
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Seema Singh
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Kevin Lange
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).