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.
 
 

17 lines
400 B

  1. #!/bin/bash
  2. scriptpath="$(cd "$(dirname "$0")"; pwd -P)"
  3. if [[ "$1" =~ ^http ]]
  4. then
  5. url="$1"
  6. url="${url/http:/https:}"
  7. pattern="${url//./\\.}"
  8. pattern="${pattern/https:/https?:}"
  9. else
  10. url="https://${1}.blogspot.com/"
  11. pattern="https?://${url//./\\.}/"
  12. fi
  13. echo "!a ${url}"
  14. echo "!ig $("${scriptpath}/archivebot-jobid-calculation" "${url}") ^${pattern}search\?(.*&)?reverse-paginate=true(&|$)"