Skip to content

Instantly share code, notes, and snippets.

@Ernillew
Created July 15, 2017 22:03
Show Gist options
  • Save Ernillew/2459dcd87b04adf4d07f50db0f6d71cf to your computer and use it in GitHub Desktop.
Save Ernillew/2459dcd87b04adf4d07f50db0f6d71cf to your computer and use it in GitHub Desktop.
Bash function for save current site state at web.archive.org
function ia-save() {
curl -s -I "https://web.archive.org/save/$1" |
grep Content-Location |
awk '{printf( "https://web.archive.org/%s\n",$2)}';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment