Created
March 29, 2017 12:44
-
-
Save agustik/d9b5d6e868b7617965ac22702e8189bf to your computer and use it in GitHub Desktop.
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 | |
a=`date --date "$(uptime -s)" '+%s'`; | |
b=$(date '+%s'); | |
echo "$b - $a" | bc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment