Find the Yesterday

On GNU/Linux platform finding the particular date from current date is a no brainer task. For example:

Yesterday: date –date=’yesterday’
Nextday: date –date=’next day’ OR date –date=’tomorrow’
Other Tricks:
date –date=’10 year’
date –date=’10 year ago’
date –date=’this sunday’

But on Solaris, you don’t have this luxury. So you can use the following trick:
TZ=GMT+24 date

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: