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 '15 at 18:36
3

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.