#!/usr/bin/env bash name="$1" basename="$(basename "$name")" b64="${basename%%.*}" b64="${b64##*-}" url="$(echo -n "$b64" | base64 -d)" curl -L -o "$name" "$url"