#!/bin/sh for FILE_IN in "$@" do printf "Exloading %s to sdcard/%s\n" "$FILE_IN" "$(date -I)" aft-mtp-cli "storage sdcard" "mkdir $(date -I)" aft-mtp-cli "storage sdcard" "cd $(date -I)" "put "${FILE_IN}"" && rm -v "$FILE_IN" done