Created
May 15, 2019 03:26
-
-
Save ksaver/a39a8c02ecc37b6490b4b5298d6d6e53 to your computer and use it in GitHub Desktop.
A simple timestamp function, to use in scripts
This file contains hidden or 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 | |
# | |
# timestamp.sh | |
# a simple timestamp function, to use in scripts | |
function timestamp(){ | |
date +"%Y-%m-%d %H:%M:%S" | |
} | |
timestamp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment