summaryrefslogtreecommitdiff
path: root/bin/cdxget
blob: 46d56c43c2cc0f521fc43db1022fae91eec3919f (plain)
1
2
3
4
5
6
7
#!/usr/bin/env bash

url='http://web.archive.org/cdx/search/cdx?'
for arg in "$@"; do
	url+="$s${arg%%=*}=$(printf '%s' "${arg#*=}"|urlencode)&"
done
curl -sL "$url"