Hi All,
Is it possible to run date -d option in Solaris?
Do we have a work around so that -d option will be recognized
by solaris as it is recognized by linux.
I need this since i am using this in scripting and it works in Linux box. my problem is
it doesn't work in solaris box.
QUERY="rpm -qa --queryformat '%{installtime} %{name}-%{version}-%{release}-%{arch} \n'|
awk '{ if ( \$1 > '`date -d "1 week ago" +%s`') print \$2 }'"
Anyone can help me on this please ?
---------- Post updated at 02:46 PM ---------- Previous update was at 02:31 PM ----------
-Or-
Do we have equivalent commands for `date -d "1 week ago" +%s` in Solaris ?