Hi,
i just want to know how to format date command in solaris. like in linux if i use `date +%s`, it gives me seconds since 1970, but in solaris (sol86) , it is giving %s as result.
Is there any different way in solaris
Thanks
Sarbjit
Hi,
i just want to know how to format date command in solaris. like in linux if i use `date +%s`, it gives me seconds since 1970, but in solaris (sol86) , it is giving %s as result.
Is there any different way in solaris
Thanks
Sarbjit
Solaris does not support
date +%s
use
perl -e ' printf("%d\n", time);'