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: [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: Rajesh Dayal
  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).

Reply via email to