1 2 3 4 5
# Copy files into created directory in one call mkcp() { mkdir -p -- "${@: -1}" && cp -- "$@" }