DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Bash script for copying backup files...

Threaded View

  1. #2
    Join Date
    Apr 2003
    Posts
    14
    oracle@oem01--/export/home/oracle>todays_date=`date +%d`
    oracle@oem01--/export/home/oracle>echo $todays_date
    24
    oracle@oem01--/export/home/oracle>let X=todays_date-1
    oracle@oem01--/export/home/oracle>echo $X
    23
    soooo...

    oracle@oem01--/export/home/oracle>date
    Thu Apr 24 15:11:18 CDT 2003
    oracle@oem01--/export/home/oracle>date +%a' '%b' '$X' '%H':'%M':'%S' '%Z' '%Y
    Thu Apr 23 15:15:12 CDT 2003

    hope this helps
    Last edited by mharoon99; 04-24-2003 at 04:22 PM.
    Moe M Haroon

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width