Last active
March 15, 2016 22:01
-
-
Save Khalian/623441ed6c285f5ee62e to your computer and use it in GitHub Desktop.
Gives the last modified timestamp of a given HTTP page. Does not work always
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 | |
if [ $# -ne 1 ] | |
then | |
echo "Usage : ./last_modified_webpage.sh urlOfPage" | |
exit 0 | |
fi | |
curl -sI $1 | grep Last-Modified |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment