How to display Unix time in the timestamp format?
You can do this with
date +%s
For more possibilities, see
man date
My favorite way:
perl -e 'print time'
srand
without a value uses the current timestamp with these Awk
implementations:
- gawk
- gawk --posix
- mawk 1.3.3
- nawk
so you can use Awk:
awk 'BEGIN {srand(); print srand()}'
Or the awk Velour library:
velour -n 'print t_now()'