#!/usr/bin/env bash for FILE in output/* do curl -Ss -u "${USER}":"${PASS}" -T "${FILE}" "https://cloud.crystalyx.net/remote.php/dav/files/${USER}/Public/TWI/${FILE##*/}" done