Skip to content

Instantly share code, notes, and snippets.

@calvez
Created October 7, 2016 15:35
Show Gist options
  • Save calvez/539e5a09e87263b194db80c3d71b2362 to your computer and use it in GitHub Desktop.
Save calvez/539e5a09e87263b194db80c3d71b2362 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment