From Bruce.Page@BellSouth.com Mon, 30 Jul 2001 05:32:40 -0700
From: "Page, Bruce" <Bruce.Page@BellSouth.com>
Date: Mon, 30 Jul 2001 05:32:40 -0700
Subject: RE: Unix date ??
Message-ID: <F001.00358C44.20010730054023@fatcity.com>
MIME-Version: 1.0
Content-Type: text/plain


What I have done instead is to use find with either ctime or mtime and then feed that 
to rm.

something like:
find . -ctime +30 -exec rm {} \;

> -----Original Message-----
> From: Sinardy [mailto:sinardyxing@bcsis.com]
> Sent: Monday, July 30, 2001 7:16 AM
> To: Multiple recipients of list ORACLE-L
> Subject: Unix date ??
> 
> 
> Hi all,
> 
> Unix...
> My boss ask me to write script for house keeping last month files
> 
> what is the parameter to get system last month ?
> for example:
> 
> thismonth=`date ....
> 
> thismonth = thismonth - 1 is not working... 
> 
> 
> regards,
> 
> Sinardy
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> -- 
> Author: Sinardy
>   INET: sinardyxing@bcsis.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@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: Page, Bruce
  INET: Bruce.Page@BellSouth.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@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).


