Created
October 7, 2016 15:35
-
-
Save calvez/539e5a09e87263b194db80c3d71b2362 to your computer and use it in GitHub Desktop.
bash timestamp and/or date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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