Created
July 6, 2015 15:31
-
-
Save wh13371/0314ad0e5cae3cdada12 to your computer and use it in GitHub Desktop.
bash - epoch
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 | |
epoch=$(date +%s) | |
t=$(date +%Y_%m_%d_%H_%M_%S) | |
sleep 0.1 | |
echo $epoch | |
echo $t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment