tags:

views:

2537

answers:

1

I need something simple like date, but in seconds since 1970 instead of the current date, hours, minutes, and seconds.

Date doesn't seem to offer that option. Is there an easy way?

+16  A: 

This should work:

date +%s
Steef
Works very well indeed.
Burkhard