Created
August 12, 2017 21:02
-
-
Save 0x4a/474246cf44f7a3ed585342cc632737d1 to your computer and use it in GitHub Desktop.
get the first 100 bytes of a webpage every minute #bash #script
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() { | |
date +"%Y-%m-%d_%H-%M-%S" | |
} | |
while : | |
do | |
curl -s -k https://www.google.com | head -c 100 > curl_$(timestamp).html | |
echo saved: $(timestamp) | |
sleep 60 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment