Created
February 10, 2017 10:12
-
-
Save codyzu/5936a728c36cdf55fbeeb1011e1a8cf4 to your computer and use it in GitHub Desktop.
update time from google.com (useful when network blocks NTM)
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
date -s "$(wget -S "http://www.google.com/" 2>&1 | grep -E '^[[:space:]]*[dD]ate:' | sed 's/^[[:space:]]*[dD]ate:[[:space:]]*//' | head -1l | awk '{print $1, $3, $2, $5 ,"GMT", $4 }' | sed 's/,//')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment