Skip to content

Instantly share code, notes, and snippets.

@Khalian
Last active March 15, 2016 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Khalian/623441ed6c285f5ee62e to your computer and use it in GitHub Desktop.
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
#!/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