Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I get a date 10 days ago in solaris?

JCHOINov 25 2018 — edited Nov 29 2018

****** 7days ago

vi /root/date.sh

#!/bin/bash

aa=`TZ=ROK+$((6*24+15)); date +%Y%m%d`

echo $aa

# ./date.sh

20181119

***** 10days ago

#!/bin/bash

aa=`TZ=ROK+$((9*24+15)); date +%Y%m%d`

echo $aa

# ./date.sh

20181126

How do I get result, 10 days ago in solaris?

This post has been answered by Kazuok-Oracle on Nov 27 2018
Jump to Answer
Comments
Post Details
Added on Nov 25 2018
4 comments
2,494 views