bash get current epoch code example Example: unix timestamp bash date +%s # Give the number of seconds since epoch