1

on Linux the syntax for date with seconds is:

date +%s
1438587288

from MAN PAGE - %s seconds since 1970-01-01 00:00:00 UTC

what is the same equivalent for Solaris?

1
  • 1
    With Solaris 11: date +%s :)
    – Cyrus
    Aug 3, 2015 at 18:36

1 Answer 1

3

On Solaris (or any POSIX system), you can use:

nawk 'BEGIN{srand(); print srand()}'

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .