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: Unix date ??

RE: Unix date ??

From: Rajesh Dayal <Rajesh_at_ohitelecom.com>
Date: Mon, 30 Jul 2001 05:07:31 -0700
Message-ID: <F001.00358BE2.20010730050034@fatcity.com>

You can try following ..........
>>>>>>

typeset -i this_mon
this_mon=`date +%0m`
echo $this_mon
typeset -i prev_mon
prev_mon=$this_mon-1
echo $prev_mon
<<<<<<<<<<

HTH,
Rajesh
-----Original Message-----
Sent: Monday, July 30, 2001 3:16 PM
To: Multiple recipients of list ORACLE-L

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_at_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_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: Rajesh Dayal
  INET: Rajesh_at_ohitelecom.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 Mon Jul 30 2001 - 07:07:31 CDT

Original text of this message

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