How to get date in UNIX timestamp in BASH

Spread the love

As a part of the bash script for automation sometimes need to get a date in UNIX timestamp format. For this can be used command date.

Run command: date +%s – this command returns UNIX timestamp in seconds

Leave a Reply