Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: how to know latest file creation on a partition

RE: how to know latest file creation on a partition

From: Kevin Lange <kgel_at_ppoone.com>
Date: Wed, 27 Jun 2001 11:18:23 -0700
Message-ID: <F001.0033A45B.20010627092148@fatcity.com>

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: oracledbam_at_hotmail.com

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: 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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Kevin Lange
  INET: kgel_at_ppoone.com
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: 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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US