diff --git a/setdatefromhttp.sh b/setdatefromhttp.sh new file mode 100644 index 0000000..074ed91 --- /dev/null +++ b/setdatefromhttp.sh @@ -0,0 +1,2 @@ +#!/bin/bash +date -s "$(curl -I 'http://muellers-software.org/thispagegivesa404error' 2>/dev/null | grep -i '^date:' | sed 's/^[Dd]ate: //g' | tr -d ,)"