calvez
10/7/2016 - 3:35 PM

bash timestamp and/or date

bash timestamp and/or date

#!/bin/bash

# Define a timestamp function
timestamp() {
  date +"%T"
}

# do something...
timestamp # print timestamp
# do something else...
timestamp # print another timestamp
# start the