I am printing yesterday date in solaris using command:
TZ=GMT+24 date +%b_%d_%Y
but at 01:00 AM on jan 11, it is printing:
Jan_09_2013 instead of
Anyone please explain.
on 01/11/2013 – Made popular on 01/11/2013
We are facing an issue while setting up printers in solaris 5.10 . We have Oracle EBS installed over it. We have configured the printer and when we try printing a page from EBS it is printing fine. But the problem arises when we print two copies of the page.
The GNU implementation of the date command has a nice feature to show the date of the last modification of a reference file, and using the +FORMAT parameter it is easy to get the date in any format, for example:
date -r /etc/passwd +%Y%m%d_%H%M%S
# output in the format: 20121001_171233
Is there an equivalent in Solaris? I know I can do it using perl's stat function, but is there an easier way?
I need to get the date of 50th day from the last friday for one of the calculation into variable in Unix script. The format required is YYYYMMDD. I have solaris OS and dont have GNU date. I would appreciate if some one can help me with this.
It can be a onliner or function or block of code.