The little things give you away... A collection of various small helper stuff
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
- scriptpath="$(cd "$(dirname "$0")"; pwd -P)"
-
- if [[ "$1" =~ ^http ]]
- then
- url="$1"
- url="${url/http:/https:}"
- pattern="${url//./\\.}"
- pattern="${pattern/https:/https?:}"
- else
- url="https://${1}.blogspot.com/"
- pattern="https?://${url//./\\.}/"
- fi
-
- echo "!a ${url}"
- echo "!ig $("${scriptpath}/archivebot-jobid-calculation" "${url}") ^${pattern}search\?(.*&)?reverse-paginate=true(&|$)"
|